diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-01 00:45:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-01-01 00:45:14 +0900 |
| commit | 8b779796678b5cbd8e24a0d86f97701d20aa56c0 (patch) | |
| tree | 786bb0bca92b8b31168e35a5aae580bba27af0ca /src/numeric.c | |
| parent | 1ed4de58d016a25d8a6ae4576e447dab1709535c (diff) | |
| download | mruby-8b779796678b5cbd8e24a0d86f97701d20aa56c0.tar.gz mruby-8b779796678b5cbd8e24a0d86f97701d20aa56c0.zip | |
Initialize potentially uninitialized variable z
Diffstat (limited to 'src/numeric.c')
| -rw-r--r-- | src/numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c index a9a2a641b..0306b1363 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -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"); |
