summaryrefslogtreecommitdiff
path: root/sys/include/json.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-09-07 18:25:04 -0700
committerOri Bernstein <ori@eigenstate.org>2019-09-07 18:25:04 -0700
commit71939a82ccc505b0baa990d7fe17e7085d0ab8fc (patch)
tree67b8995b14a4c78c5c2b9f87bdd2e9bfe1cf7e1d /sys/include/json.h
parent2917cb1d17b30e599f3934fcf2878f3174d63871 (diff)
Allow address expressions in ?c after int casts.
This fixes ocaml on non-x86 architectures, where we have code that looks like: #define Fl_head ((uintptr_t)(&sentinel.first_field)) Without this change, we get an error about a non-constant initializer. This change takes the checks for pointers and makes them apply to all expressions. It also makes the checks stricter, preventing the following from compiling to junk: int x; int y = 42; int *p = &x + y
Diffstat (limited to 'sys/include/json.h')
0 files changed, 0 insertions, 0 deletions