forked from Imagelibrary/binutils-gdb
2005-09-19 Paul Brook <paul@codesourcery.com>
* armdefs.h: Define ARMsword and ARMsdword. Use stdint.h when available. * armemu.c: Use them. * armvirt.c (ARMul_MemoryInit): Use correct type for size. * configure.ac: Check for stdint.h. * config.in: Regenerate. * configure: Regenerate.
This commit is contained in:
@@ -139,7 +139,7 @@ ARMul_MemoryInit (ARMul_State * state, unsigned long initmemsize)
|
||||
if (initmemsize)
|
||||
state->MemSize = initmemsize;
|
||||
|
||||
pagetable = (ARMword **) malloc (sizeof (ARMword) * NUMPAGES);
|
||||
pagetable = (ARMword **) malloc (sizeof (ARMword *) * NUMPAGES);
|
||||
|
||||
if (pagetable == NULL)
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user