diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-18 21:52:18 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-21 18:43:07 +0100 |
commit | 1755038134cfe16d3d52ec2aea543955462e2951 (patch) | |
tree | 3199ae7308c4da327ac15ffead5cfa641c79bd76 /src/gui/text | |
parent | 6338b1421ef5a9928df25dde5ef62c6b11682da6 (diff) |
QFixed: fix undefined behavior
Left-shifting of negative values is undefined ([expr.shift]/2).
Use multiplication with 64 instead.
There are probably more instances in this class, but this patch
already gets rid of vast amounts of ubsan errors in
tests/auto/gui/text.
Found by UBSan.
Change-Id: I89b8bb61e4decba605fe4fb3efea68b1f1eacf1a
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions