Initialize potentially uninitialized variable z

parent 1ed4de58
...@@ -1044,7 +1044,7 @@ fix_to_f(mrb_state *mrb, mrb_value num) ...@@ -1044,7 +1044,7 @@ fix_to_f(mrb_state *mrb, mrb_value num)
MRB_API mrb_value MRB_API mrb_value
mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x) mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x)
{ {
mrb_int z; mrb_int z = 0;
if (!mrb_float_p(x)) { if (!mrb_float_p(x)) {
mrb_raise(mrb, E_TYPE_ERROR, "non float value"); mrb_raise(mrb, E_TYPE_ERROR, "non float value");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment