diff options
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; } |
