AreaTest: 64bit fix.

This commit is contained in:
Adrien Destugues 2014-10-22 19:36:05 +02:00
parent 5dbd0f48cc
commit b137575c46

View File

@ -28,13 +28,13 @@ AreaTest::TestAreas()
int * ptr = new int[1];
char *adr;
area_id id;
int offset;
ptrdiff_t offset;
area_info info;
id = area_for(ptr);
get_area_info(id, &info);
adr = (char *)info.address;
offset = (uint32)ptr - (uint32)adr;
offset = (ptrdiff_t)ptr - (ptrdiff_t)adr;
char * adrclone1;