diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-08-13 10:21:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:21:37 +0900 |
| commit | 968053a35b7cf6a85949efc8eb5f7cb3dab23f67 (patch) | |
| tree | 71e992a0fba9f5bda37409289325dd42ec1a4ecf /src/class.c | |
| parent | 66114f8332c734c6fb241803ca301f2ce0da1838 (diff) | |
| download | mruby-968053a35b7cf6a85949efc8eb5f7cb3dab23f67.tar.gz mruby-968053a35b7cf6a85949efc8eb5f7cb3dab23f67.zip | |
Avoid out-of-range error for negative time on `MRB_TIME_T_UINT`.
On platforms where `time_t` is unsigned, negative time can be a result
of integer casting. Out-of-range error is too strict for those cases.
This fix does not address wrong time value in `MRB_WORD_BOXING`. It will
be addressed later (by introducing "big" integers).
Diffstat (limited to 'src/class.c')
0 files changed, 0 insertions, 0 deletions
