diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2020-08-11 18:24:34 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-09-29 14:55:48 -0700 |
| commit | e4fece60aaef43e8a8139c16b276f76e22d3cc9d (patch) | |
| tree | 827edc5e9e3f77625122eb6dc4a76477fd6ee072 /src/corelib/serialization/qjsonparser.cpp | |
| parent | 589d37e155f3f6704e32d56d86dd3af164e0dbf7 (diff) | |
Add {add,sub,mul}_overflow detection when one operand is a constant
We were missing 64-bit signed mul_overflow on 32-bit platforms and in
those where we did have it, the detection was awful (both for signed and
for unsigned). So if one of the parameters is a constant, we can
simplify the code generated.
Change-Id: Ia99afccf0c474e20b3ddfffd162a60d269eb1892
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonparser.cpp')
0 files changed, 0 insertions, 0 deletions
