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/bools.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/stdlib/bools.c')
| -rw-r--r-- | src/stdlib/bools.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stdlib/bools.c b/src/stdlib/bools.c index 1b408eaa..6b65968d 100644 --- a/src/stdlib/bools.c +++ b/src/stdlib/bools.c @@ -12,8 +12,9 @@ #include "text.h" #include "util.h" -PUREFUNC public Text_t Bool$as_text(const void *b, bool colorize, const TypeInfo_t*) +PUREFUNC public Text_t Bool$as_text(const void *b, bool colorize, const TypeInfo_t *info) { + (void)info; if (!b) return Text("Bool"); if (colorize) return *(Bool_t*)b ? Text("\x1b[35myes\x1b[m") : Text("\x1b[35mno\x1b[m"); @@ -38,8 +39,9 @@ PUREFUNC public OptionalBool_t Bool$parse(Text_t text) } } -static bool Bool$is_none(const void *b, const TypeInfo_t*) +static bool Bool$is_none(const void *b, const TypeInfo_t *info) { + (void)info; return *(OptionalBool_t*)b == NONE_BOOL; } |
