Initialize potentially uninitialized variable z

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-01-01 00:45:14 +09:00
parent 1ed4de58d0
commit 8b77979667
+1 -1
View File
@@ -1044,7 +1044,7 @@ fix_to_f(mrb_state *mrb, mrb_value num)
MRB_API mrb_value
mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x)
{
mrb_int z;
mrb_int z = 0;
if (!mrb_float_p(x)) {
mrb_raise(mrb, E_TYPE_ERROR, "non float value");