Skip to content
Snippets Groups Projects
Commit 2ce4822b authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[machdep] convert char_is_unsigned test to _Static_assert

parent ffca14f7
No related branches found
No related tags found
No related merge requests found
#include "make_machdep_common.h"
__attribute__((section(".data")))
unsigned char char_is_unsigned = (char)-1 >= 0 ? 0x15 : 0xf4;
_Static_assert((char)-1 >= 0 ? 1 : 0, "char_is_unsigned is False");
_Static_assert((char)-1 >= 0 ? 0 : 1, "char_is_unsigned is True");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment