From 5195eca7f9a95208438042bf992bf16c80e54a51 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Thu, 2 Oct 2008 07:15:35 +0000 Subject: [PATCH] fix pobj warning; add pobj tests to cmake --- pobj/pobj.h | 2 +- test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pobj/pobj.h b/pobj/pobj.h index 99d41f4..a0de668 100644 --- a/pobj/pobj.h +++ b/pobj/pobj.h @@ -2,7 +2,7 @@ #define __POBJ_H #define member_sizeof(s,x) (sizeof(((s *)NULL)->x)) -#define member_offset(s,x) ((int)&(((s *)NULL)->x)) +#define member_offset(s,x) ((long)&(((s *)NULL)->x)) struct pobj_memfunc { diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index eead19b..85d4024 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1 +1 @@ -SUBDIRS(stasis) +SUBDIRS(stasis pobj)