Permalink
Browse files

Fixes the truthiness value of lists

  • Loading branch information...
1 parent 4ca0deb commit fd5065a3a079340bca0c57625d330f24a8135205 @gvx committed Oct 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/value.c
View
@@ -178,7 +178,7 @@ bool truthy(V t)
case T_STR:
return toString(t)->length > 0;
case T_STACK:
- return toStack(t)->size > 0;
+ return toStack(t)->used > 0;
case T_DICT:
return toHashMap(t)->used > 0;
default:

0 comments on commit fd5065a

Please sign in to comment.