From ef55fb9cdb33984f9021e28aea03cc8b915331ad Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 17 Nov 2015 21:43:10 +0800 Subject: [PATCH] Another fix for stdbool types --- src/token.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/token.c b/src/token.c index 093b32d..d59abe1 100644 --- a/src/token.c +++ b/src/token.c @@ -48,12 +48,12 @@ bool str_array_resize(str_array * l, int new_cap) { bool str_array_append(str_array * l, char * token) { if ( str_array_is_full(l) ) { bool ret = str_array_resize(l, l->cap + 20); - if (ret == FALSE ) { - return FALSE; + if (ret == false ) { + return false; } } l->tokens[ l->len++ ] = token; - return TRUE; + return true; } void str_array_dump(const str_array *l) {