summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-12 15:26:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-12 15:26:27 (GMT)
commit19d8ff62c56686e2c07979778a64661229c62a64 (patch)
tree72de2a9bac1693435bbc7b11aba109f51ef94955 /generic/tclBinary.c
parent100d8f950dbcdf50e48c8d257a98ee915c043e30 (diff)
downloadtcl-19d8ff62c56686e2c07979778a64661229c62a64.zip
tcl-19d8ff62c56686e2c07979778a64661229c62a64.tar.gz
tcl-19d8ff62c56686e2c07979778a64661229c62a64.tar.bz2
Eliminate (internal) TclOffset() usage, just use offsetof() in stead.
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 831a427..d8b9ae9 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -277,7 +277,7 @@ typedef struct ByteArray {
} ByteArray;
#define BYTEARRAY_SIZE(len) \
- ((unsigned) (TclOffset(ByteArray, bytes) + (len)))
+ (offsetof(ByteArray, bytes) + (len))
#define GET_BYTEARRAY(irPtr) ((ByteArray *) (irPtr)->twoPtrValue.ptr1)
#define SET_BYTEARRAY(irPtr, baPtr) \
(irPtr)->twoPtrValue.ptr1 = (void *) (baPtr)