Better HN
topnewbestaskshowjobs
Log inSign up

c99throwa2

9 karma · joined Sep 14, 2015 (11y ago) · 1 submissions

Submissions

comment 11y ago · link · parent

Of course I read that, or else I would have no idea they broke pointer round-tripping.

I believe this violates C99 §7.18.1.4 (if the TruffleC language defines the uintptr_t type in stdint.h):

  The following type designates an unsigned integer type
  with the property that any valid pointer to void can be
  converted to this type, then converted back to pointer to
  void, and the result will compare equal to the original
  pointer:

    uintptr_t
If the TruffleC language does not define uintptr_t ("these types are optional"), then hey, that's fine. A lot of valid code won't compile, though.