Skip to content

Commit 21de13f

Browse files
committedJan 8, 2016
Use nil_p() instead of '== cNil'.
1 parent 982918f commit 21de13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎vm/instructions.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162

163163
instruction goto_if_nil(location) [ value -- ] => branch
164164
Object* t1 = stack_pop();
165-
if(t1 == cNil) {
165+
if(t1->nil_p()) {
166166
store_ip(location);
167167
}
168168
end

0 commit comments

Comments
 (0)
Please sign in to comment.