Commit 3dbaa54
committed
Fix outputting extreme integer values in edge cases
For some gcc version (Ubuntu 5.5.0-12ubuntu1~16.04) the existing code
crashes when the minimum value of int64_t is outputted.
Rewrite the code to be less complicated to avoid it. This partially
reverts what was done in 546e2cb (:rotating_light: fixed some warnings,
2019-03-13).1 parent 13684f2 commit 3dbaa54
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14264 | 14264 | | |
14265 | 14265 | | |
14266 | 14266 | | |
14267 | | - | |
| 14267 | + | |
14268 | 14268 | | |
14269 | 14269 | | |
14270 | 14270 | | |
| |||
0 commit comments