Skip to content
Permalink
Browse files
Use nil_p() instead of '== cNil'.
  • Loading branch information
brixen committed Jan 8, 2016
1 parent 982918f commit 21de13fd37ba0cc6773dd911cc1dc24fa2dd9755
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/instructions.def
@@ -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

0 comments on commit 21de13f

Please sign in to comment.