summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontmetrics.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-05-02 10:44:37 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-05-04 06:00:39 +0000
commiteb82959d6688f9e58be4b67670afba3649f1f799 (patch)
treef29b36ecc19e2c32d4c242b7dc514e3a3aa5b6dc /src/gui/text/qfontmetrics.h
parent9ae7e33f28f972ec566d62ab110e173ebe933520 (diff)
Fix undefined behavior in left-shifting into negative
It's undefined behavior to left or right-shift a signed integer such that the sign changes. Since SymbolCsbBit is 31, make sure we use unsigned numbers. Found by ICC qplatformfontdatabase.cpp(614): error #68: integer conversion resulted in a change of sign Change-Id: Idf715b895bac4d56b4afffff13da78d294b1248e Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text/qfontmetrics.h')
0 files changed, 0 insertions, 0 deletions