Skip to content

Commit

Permalink
Update src/vkutil.h
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Grunder <[email protected]>
Signed-off-by: Björn Svensson <[email protected]>
  • Loading branch information
bjosv and michael-grunder authored Sep 28, 2024
1 parent 585e913 commit c42f36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vkutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <sys/types.h>

/* Static assert macro for C99. */
#define vk_static_assert(cond) extern char vk_static_assert[sizeof(char[1 - 2 * !(cond)])]
#define vk_static_assert(cond) extern char vk_static_assert[sizeof(char[(cond) ? 1 : -1])]

/*
* Wrapper to workaround well known, safe, implicit type conversion when
Expand Down

0 comments on commit c42f36a

Please sign in to comment.