From b137575c461be41cda4355aca3ff195ac92881e3 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 22 Oct 2014 19:36:05 +0200 Subject: [PATCH] AreaTest: 64bit fix. --- src/tests/kits/media/AreaTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/kits/media/AreaTest.cpp b/src/tests/kits/media/AreaTest.cpp index 3cb1d9d654..d960ed0331 100644 --- a/src/tests/kits/media/AreaTest.cpp +++ b/src/tests/kits/media/AreaTest.cpp @@ -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;