diff options
author | Sverker Eriksson <[email protected]> | 2016-05-26 11:34:43 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-05-26 12:14:05 +0200 |
commit | 17cca30753584021dc1c518fffa42f4629a73775 (patch) | |
tree | f60d385884cf86f6396c65743804f3227482c3af /erts/emulator/beam/sys.h | |
parent | a3fcb808a48a8bbcc785edd06d68b7a1fe079c8d (diff) | |
download | otp-17cca30753584021dc1c518fffa42f4629a73775.tar.gz otp-17cca30753584021dc1c518fffa42f4629a73775.tar.bz2 otp-17cca30753584021dc1c518fffa42f4629a73775.zip |
erts: Tweak ErtsContainerStruct macro
with surrounding parenthesis
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 2 |
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" |