Refactor lshift in numeric.c

This commit is contained in:
Jun Hiroe
2014-04-13 00:22:22 +09:00
parent 0823b23623
commit 212b3409ae
+1 -2
View File
@@ -980,8 +980,7 @@ lshift(mrb_state *mrb, mrb_int val, mrb_int width)
mrb_fixnum_value(width),
mrb_fixnum_value(NUMERIC_SHIFT_WIDTH_MAX));
}
val = val << width;
return mrb_fixnum_value(val);
return mrb_fixnum_value(val << width);
}
static mrb_value