utils/macros.h (STATIC_ASSERT): Boolean-canonify the expression.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 23 Jun 2022 14:01:14 +0000 (15:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 23 Jun 2022 14:03:21 +0000 (15:03 +0100)
commitdd65cf2dc0244dd4130565db62d152a4bc57e6ec
tree07a6cb98df63ca63e2b723964b5f5b63a2bbc406
parent6b210fdf04f67df393b5a0cd1222136b36c2eda7
utils/macros.h (STATIC_ASSERT): Boolean-canonify the expression.

6.7.10p3 insists that the expression be an integer constant expression,
but this isn't in a constraint, so the behaviour is undefined if it's
not an integer constant expression.  Apply `!!' to force pointerish
expressions to integer type.

*headdesk*
utils/macros.h