aboutsummaryrefslogtreecommitdiff
path: root/src/libsec
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsec')
-rw-r--r--src/libsec/port/tlshand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsec/port/tlshand.c b/src/libsec/port/tlshand.c
index 8816db3b..e01f685c 100644
--- 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