Skip to content

Commit

Permalink
Use nil_p() instead of '== cNil'.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jan 8, 2016
1 parent 982918f commit 21de13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/instructions.def
Expand Up @@ -162,7 +162,7 @@ end

instruction goto_if_nil(location) [ value -- ] => branch
Object* t1 = stack_pop();
if(t1 == cNil) {
if(t1->nil_p()) {
store_ip(location);
}
end
Expand Down

0 comments on commit 21de13f

Please sign in to comment.