aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-05-26 11:34:43 +0200
committerSverker Eriksson <[email protected]>2016-05-26 12:14:05 +0200
commit17cca30753584021dc1c518fffa42f4629a73775 (patch)
treef60d385884cf86f6396c65743804f3227482c3af /erts/emulator
parenta3fcb808a48a8bbcc785edd06d68b7a1fe079c8d (diff)
downloadotp-17cca30753584021dc1c518fffa42f4629a73775.tar.gz
otp-17cca30753584021dc1c518fffa42f4629a73775.tar.bz2
otp-17cca30753584021dc1c518fffa42f4629a73775.zip
erts: Tweak ErtsContainerStruct macro
with surrounding parenthesis
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/sys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index f303d4f167..9a205d50d3 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -97,7 +97,7 @@
((UWord)((char*)(ptr) - (char*)(start)) < (nbytes))
#define ErtsContainerStruct(ptr, type, member) \
- (type *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member))
+ ((type *)((char *)(1 ? (ptr) : &((type *)0)->member) - offsetof(type, member)))
#if defined (__WIN32__)
# include "erl_win_sys.h"