rational.c: fix MRB_TT_RATIONAL and MRB_TT_COMPLEX confusion.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-03-20 18:03:11 +09:00
parent 98821d2725
commit e21f293de5
+1 -1
View File
@@ -380,7 +380,7 @@ mrb_rational_eq(mrb_state *mrb, mrb_value x, mrb_value y)
return a == b;
}
#ifdef MRB_USE_COMPLEX
case MRB_TT_RATIONAL:
case MRB_TT_COMPLEX:
{
mrb_bool mrb_complex_eq(mrb_state *mrb, mrb_value, mrb_value);
return mrb_complex_eq(mrb, y, x);