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)