tlibsec: use intptr to silence 64-bit warning (Michael Teichgräber) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 350f4d3ede30defbe2956199a67fbb2304f549d7
(DIR) parent 949b59cd4e7d1f55c40692040ec1ab5ce150e6fc
(HTM) Author: Russ Cox <rsc@swtch.com>
Date: Thu, 6 Mar 2008 15:14:03 -0500
libsec: use intptr to silence 64-bit warning (Michael Teichgräber)
Diffstat:
M src/libsec/port/tlshand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/libsec/port/tlshand.c b/src/libsec/port/tlshand.c
t@@ -2238,7 +2238,7 @@ get16(uchar *p)
}
/* 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