Ticket #8554: simon-crash-amd64-fix.diff
File simon-crash-amd64-fix.diff, 588 bytes (added by , 18 years ago) |
---|
-
engines/simon/simon.cpp
654 654 655 655 byte *SimonEngine::allocateItem(uint size) { 656 656 byte *org = _itemHeapPtr; 657 size = (size + 3) & ~3;657 size = (size + sizeof(void*) - 1) & ~(sizeof(void*) - 1); 658 658 659 659 _itemHeapPtr += size; 660 660 _itemHeapCurPos += size; … … 727 727 } 728 728 729 729 void SimonEngine::allocItemHeap() { 730 _itemHeapSize = 10000;730 _itemHeapSize = 20000; 731 731 _itemHeapCurPos = 0; 732 _itemHeapPtr = (byte *)calloc( 10000, 1);732 _itemHeapPtr = (byte *)calloc(20000, 1); 733 733 } 734 734 735 735 void SimonEngine::allocTablesHeap() {