diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
| commit | e5420471a7364a92521575e7abd3a29a9318001b (patch) | |
| tree | 6b7aaccff3d033fdc49cee41874071637fa8b68e /src/stdlib/enums.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/stdlib/enums.c')
| -rw-r--r-- | src/stdlib/enums.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdlib/enums.c b/src/stdlib/enums.c index bcf47d8e..0c5cf196 100644 --- a/src/stdlib/enums.c +++ b/src/stdlib/enums.c @@ -83,8 +83,9 @@ public Text_t Enum$as_text(const void *obj, bool colorize, const TypeInfo_t *typ return generic_as_text(obj + byte_offset, colorize, value.type); } -PUREFUNC public bool Enum$is_none(const void *x, const TypeInfo_t*) +PUREFUNC public bool Enum$is_none(const void *x, const TypeInfo_t *info) { + (void)info; return *(int32_t*)x == 0; } |
