-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10.0 Beta3
While implementing QTBUG-2163, I tried to make room for a condition in the Properties::cases struct by reducing the diff member to 12 bits. The compiler warned that this is too small:
qunicodetables.cpp:10834:1: warning: overflow in conversion from ‘short int’ to ‘short int:12’ changes value from ‘7264’ to ‘-928’ [-Woverflow] qunicodetables.cpp:10834:1: warning: overflow in conversion from ‘short int’ to ‘short int:12’ changes value from ‘7264’ to ‘-928’ [-Woverflow] qunicodetables.cpp:10834:1: warning: overflow in conversion from ‘short int’ to ‘short int:12’ changes value from ‘7264’ to ‘-928’ [-Woverflow] qunicodetables.cpp:10834:1: warning: overflow in conversion from ‘short int’ to ‘short int:12’ changes value from ‘-6254’ to ‘1938’ [-Woverflow] ~~~~
But none of the tests I ran failed:
- tst_QUnicodeTools
- tst_QString
- tst_QTextBoundaryFinder
- tst_QLocale
I think tst_QUnicodeTools should read the files in util/unicode/data and do a full conformance check.