commit 350f4d3ede30defbe2956199a67fbb2304f549d7
parent 949b59cd4e7d1f55c40692040ec1ab5ce150e6fc
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsec/port/tlshand.c b/src/libsec/port/tlshand.c
@@ -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