Use true and false for bool, not 0 and 1

This commit is contained in:
ridiculousfish 2017-01-26 12:51:11 -08:00
parent 59a3968fd2
commit 2fb1d5900d

View file

@ -1030,11 +1030,11 @@ bool env_exist(const wchar_t *key, env_mode_flags_t mode) {
/// variable.
static bool local_scope_exports(const env_node_t *n) {
assert(n != NULL);
if (n == vars_stack().global_env) return 0;
if (n == vars_stack().global_env) return false;
if (n->exportv) return 1;
if (n->exportv) return true;
if (n->new_scope) return 0;
if (n->new_scope) return false;
return local_scope_exports(n->next.get());
}