aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2006-12-17 19:39:15 +0000
committerWillem Jan Palenstijn2006-12-17 19:39:15 +0000
commitd39da605a23a9ec54caf4ae56ad212e7d4c915e1 (patch)
tree072189c38aa555a2d4fef4c42496237a1a651c32
parent4ca90ab14856fd8fcf2c18a65f19e6eaa15bdbe8 (diff)
downloadscummvm-rg350-d39da605a23a9ec54caf4ae56ad212e7d4c915e1.tar.gz
scummvm-rg350-d39da605a23a9ec54caf4ae56ad212e7d4c915e1.tar.bz2
scummvm-rg350-d39da605a23a9ec54caf4ae56ad212e7d4c915e1.zip
sync OFFS define in tests with scumm/saveload.h (64 bit fix for make test)
svn-id: r24864
-rw-r--r--test/common/pack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/common/pack.h b/test/common/pack.h
index a46a2a98b8..68254db187 100644
--- a/test/common/pack.h
+++ b/test/common/pack.h
@@ -2,6 +2,7 @@
#include "common/stdafx.h"
#include "common/scummsys.h"
+#include <stddef.h>
#include <common/pack-start.h> // START STRUCT PACKING
@@ -15,7 +16,7 @@ struct TestStruct {
#include <common/pack-end.h> // END STRUCT PACKING
-#define OFFS(type,item) (int)(&((type*)0)->type::item)
+#define OFFS(type,item) (((ptrdiff_t)(&((type*)42)->type::item))-42)
class PackTestSuite : public CxxTest::TestSuite
{