]> 4ch.mooo.com Git - 16.git/commitdiff
^^;
authorsparky4 <sparky4@cock.li>
Thu, 2 Jul 2015 04:46:31 +0000 (23:46 -0500)
committersparky4 <sparky4@cock.li>
Thu, 2 Jul 2015 04:46:31 +0000 (23:46 -0500)
modified:   exmmtest.exe
modified:   src/exmmtest.c
modified:   src/lib/16_mm.c

exmmtest.exe
src/exmmtest.c
src/lib/16_mm.c

index 1687e8e6e7c6176c4337c9cdf23f5e2d66258a2c..a5f376a96ccc5e118edaa8934d839ac665b68f3f 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 1fee91c3695e0861284b4e33d5454a5584c6aa35..9000974a043883b36e5acb42c2e01c7957a75ad8 100644 (file)
@@ -34,7 +34,8 @@ main(int argc, char *argv[])
        MM_Startup(&mm, &mmi);
        printf("done!\n");
        printf("&main()=%Fp\n", *argv[0]);
-       MM_GetPtr(&bigbuffer, mmi.farheap, &mm, &mmi);
+       MM_GetPtr(&bigbuffer, mmi.nearheap, &mm, &mmi);
+       //hmm functions in cache system use the buffered stuff
        printf("size of big buffer~=%ul\n", _msize(bigbuffer));
        MM_ShowMemory(&mm);
        MM_Report(&mm, &mmi);
index 9d398daa16a56d053fb595de7a9e2303a42960fd..45411033464f18b476e50b71081904e33d13ef59 100644 (file)
@@ -1033,7 +1033,7 @@ void MM_ShowMemory(mminfo_t *mm)
 printf("Location:");
 printf("%x\t", scan->start);
 strcpy (scratch,"Size:");
-ltoa ((long)scan->length*16,str,10);
+ltoa ((dword)scan->length*16,str,10);
 strcat (scratch,str);
 strcat (scratch,"\tOwner:0x");
 owner = (unsigned)scan->useptr;