about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-26 01:59:03 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-26 01:59:03 +0000
commite3dc2cbef260dd0200337f1196253afa66487665 (patch)
tree05584d7ea991b475dc5ee9a44202010ef897ca96 /lib
parent70f64bdbccedbd86d83a97a000f2226abb6bf82e (diff)
downloadnetpbm-mirror-e3dc2cbef260dd0200337f1196253afa66487665.tar.gz
netpbm-mirror-e3dc2cbef260dd0200337f1196253afa66487665.tar.xz
netpbm-mirror-e3dc2cbef260dd0200337f1196253afa66487665.zip
release 10.35.28
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@328 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/pam.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pam.h b/lib/pam.h
index 97d5b3cb..3bad05e8 100644
--- a/lib/pam.h
+++ b/lib/pam.h
@@ -116,8 +116,13 @@ struct pam {
    member named x.  This is useful in conjunction with the 'len' value
    to determine which fields are present in the structure.
 */
+
+/* Some compilers are really vigilant and recognize it as an error
+   to cast a 64 bit address to a 32 bit type.  Hence the roundabout
+   casting in PAM_MEMBER_OFFSET.
+*/
 #define PAM_MEMBER_OFFSET(mbrname) \
-  ((unsigned int)(char*)&((struct pam *)0)->mbrname)
+  ((size_t)(unsigned long)(char*)&((struct pam *)0)->mbrname)
 #define PAM_MEMBER_SIZE(mbrname) \
   sizeof(((struct pam *)0)->mbrname)
 #define PAM_STRUCT_SIZE(mbrname) \