| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2018-09-19 | Remove implicit conversion using `to_int` method. | Yukihiro "Matz" Matsumoto | |
| The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats). | |||
| 2018-09-07 | Clear terminated space | dearblue | |
| 2018-08-06 | Small refactoring of `flodivmod()`. | Yukihiro "Matz" Matsumoto | |
| 2018-05-01 | Update `MRB_FLO_TO_STR_FMT` to "%.16g"; fix #4016 | Yukihiro "Matz" Matsumoto | |
| 2017-11-22 | Provide shortcut comparison methods for numbers for performance. | Yukihiro "Matz" Matsumoto | |
| 2017-11-04 | Merge branch 'master' of github.com:mruby/mruby | YAMAMOTO Masaya | |
| 2017-10-17 | Add `Numeric#{finite?,infinite?}`; CRuby2.4 | Yukihiro "Matz" Matsumoto | |
| 2017-10-11 | Add MRB_WITHOUT_FLOAT | YAMAMOTO Masaya | |
| 2017-09-27 | fix: src\numeric.c(1215): warning C4244: 'function': conversion from ↵ | Tomasz Dąbrowski | |
| 'mrb_int' to 'int', possible loss of data | |||
| 2017-09-27 | fix: src\numeric.c(954): warning C4334: '<<': result of 32-bit shift ↵ | Tomasz Dąbrowski | |
| implicitly converted to 64 bits (was 64-bit shift intended?) | |||
| 2017-09-27 | fix: src\numeric.c(897): warning C4244: 'function': conversion from ↵ | Tomasz Dąbrowski | |
| 'mrb_int' to 'mrb_float', possible loss of data | |||
| 2017-09-02 | Trying to make the source code more understandable by removing mixing of ↵ | Flavio Medeiros | |
| ternary if statements with attributions. | |||
| 2017-08-22 | Remove possible path that leaves a local variable uninitialized. | Yukihiro "Matz" Matsumoto | |
| 2017-08-10 | Remove redundant `flo_hash` function. | Yukihiro "Matz" Matsumoto | |
| `flo_hash` implemented `15.2.8.3.18` but `Kernel#hash` (15.3.1.3.15) now works for numbers. | |||
| 2017-08-08 | Float values divided by zero should honor signs; fix #3766 | Yukihiro "Matz" Matsumoto | |
| It also fixes unexpected resurrection of #3745 by #3752 | |||
| 2017-07-26 | `(0).div(0.0)` should be NaN; fix #3754 | Yukihiro "Matz" Matsumoto | |
| 2017-07-25 | `(0.0).div(0)` should not be infinity; fix #3753 | Yukihiro "Matz" Matsumoto | |
| 2017-07-05 | Avoid undefined behavior of left shifting negative integer; #3728 | Yukihiro "Matz" Matsumoto | |
| 2017-06-17 | Use `mrb_int` instead of `int`. | Yukihiro "Matz" Matsumoto | |
| 2017-05-31 | Avoid infinite loop on negative exponent; fix #3677 | Yukihiro "Matz" Matsumoto | |
| 2017-05-27 | Fixed rounding functions (round,ceil,floor,truncate) in MRB_INT64. | Yukihiro "Matz" Matsumoto | |
| They didn't work well with inexact numbers (inf,nan). Fix #3671 | |||
| 2017-05-26 | Add new range check macro FIXABLE_FLOAT(); ref #3652 | Yukihiro "Matz" Matsumoto | |
| When MRB_INT64, valid value range of mrb_int is bigger than double, which only has 53 bits significant precision. | |||
| 2017-05-26 | Fix indentation in mrb_init_numeric() | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | fixup! Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | Try our own `ipow()` if both base and exp are fixnums; fix #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-04-21 | `mrb_int` may overflow in bit-shifting; fix #3620 | Yukihiro "Matz" Matsumoto | |
| 2017-04-21 | Bit-shifting zero should be zero; ref #3620 | Yukihiro "Matz" Matsumoto | |
| 2017-04-03 | Unify `else` clause style | Yukihiro "Matz" Matsumoto | |
| 2017-03-29 | Should raise FloatDomainError | ksss | |
| 2017-03-20 | Add explicit cast from float to mrb_int. | Yukihiro "Matz" Matsumoto | |
| 2017-01-01 | Initialize potentially uninitialized variable z | Yukihiro "Matz" Matsumoto | |
| 2016-12-08 | fix build on vs2013-vs2015 | Yasuhiro Matsumoto | |
| 2016-11-30 | Prohibit instantiation of immediate objects | Yukihiro "Matz" Matsumoto | |
| 2016-11-23 | Implement Float shift methods in C | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | int64_value(): use FIXABLE() | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | accept floats as bit operator operands; fix #3260 | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | Removed fix_shift_get_width() | Yukihiro "Matz" Matsumoto | |
| Fixnum is usually big enough for shift width. | |||
| 2016-11-22 | add bit operators ~,&,|,^ to Float class (mruby special) | Yukihiro "Matz" Matsumoto | |
| 2016-09-28 | Removed trailing spaces | Nobuyoshi Nakada | |
| 2016-05-10 | use mrb_int_mul_overflow() | cremno | |
| 2015-11-27 | include changed from by quotes ("") to by brackets (<>); close #3032 | Yukihiro "Matz" Matsumoto | |
| 2015-11-19 | integer range check was moved to mrb_flo_to_fixnum(); ref #3025 | Yukihiro "Matz" Matsumoto | |
| 2015-11-18 | Bugfix nagative-number lshift() bit overflow | murase_syuka | |
| 2015-11-18 | Bugfix lshift() bit overflow; close #3023 | murase_syuka | |
| 2015-11-16 | fix comment | murase_syuka | |
| 2015-10-20 | Increasing docs coverage | Seba Gamboa | |
| 2015-09-02 | Integer << and >> to use Float instead of raising RangeError | Yukihiro "Matz" Matsumoto | |
| 2015-08-07 | FIXABLE() may work wrong on MRB_INT64; fix #2909 | Yukihiro "Matz" Matsumoto | |
| 2015-06-29 | Avoid a narrowing cast in flo_round under MRB_INT64. | Simon Génier | |
