libsec: use intptr to silence 64-bit warning (Michael Teichgräber)

This commit is contained in:
Russ Cox 2008-03-06 15:14:03 -05:00
parent 949b59cd4e
commit 350f4d3ede

View file

@ -2238,7 +2238,7 @@ get16(uchar *p)
} }
/* ANSI offsetof() */ /* ANSI offsetof() */
#define OFFSET(x, s) ((int)(&(((s*)0)->x))) #define OFFSET(x, s) ((intptr)(&(((s*)0)->x)))
/* /*
* malloc and return a new Bytes structure capable of * malloc and return a new Bytes structure capable of