Skip to content

Commit

Permalink
Use mrb_true_or_false_value() / in true_xor().
Browse files Browse the repository at this point in the history
  • Loading branch information
monaka committed Mar 19, 2013
1 parent 88f97cb commit cb8d9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object.c
Expand Up @@ -134,7 +134,7 @@ true_xor(mrb_state *mrb, mrb_value obj)
int obj2;

mrb_get_args(mrb, "b", &obj2);
return obj2 ? mrb_false_value() : mrb_true_value();
return mrb_true_or_false_value(!obj2);
}

/* 15.2.5.3.3 */
Expand Down

0 comments on commit cb8d9d4

Please sign in to comment.