diff options
Diffstat (limited to 'val.c')
-rw-r--r-- | val.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,8 +76,8 @@ void println_val(Val v) { } bool is_truthy(Val v) { - if (IS_NIL(v) || ( IS_BOOL(v) && AS_BOOL(v) == false)) - return false; + if (IS_BOOL(v)) return AS_BOOL(v); + if (IS_NIL(v)) return false; return true; } |