diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-05-29 14:31:17 -0300 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-05-30 17:23:35 -0300 |
| commit | 3c9bb0daaf0cbff9135f88e55bae8243aa937faa (patch) | |
| tree | ec6da91f27f1c3a9f22bbcc9eb091202d3b508e7 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | 626831db341c525beb39733e56cadf60a390894b (diff) | |
tst_qfloat16: don't cause UB in converting from float to ints
The test data is provided as float, so we must obey [conv.fpint]/1 when
converting from float to integer types. There are values in the rows
that are outside of the range of short and shorter integers, so just
check the range.
Fixes: QTBUG-125889
Pick-to: 6.7
Change-Id: If3345151ddf84c43a4f1fffd17d405ee0cd00d44
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
