Skip to content

Commit

Permalink
Initialize potentially uninitialized variable z
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 31, 2016
1 parent 1ed4de5 commit 8b77979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numeric.c
Expand Up @@ -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");
Expand Down

0 comments on commit 8b77979

Please sign in to comment.