mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Initialize potentially uninitialized variable z
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user