diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-06-11 11:52:57 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-06-12 19:52:34 +0000 |
| commit | 962539d12b5584e28d32dbc8c6d61a509128d910 (patch) | |
| tree | 62cc37b6d772dd7347e5c8efc4e5d3acc99a24d2 /src/plugins/sqldrivers/ibase/qsql_ibase.cpp | |
| parent | 22761f13d342df677e653c07b3d066ed2b7354ac (diff) | |
Fix return type of _q_futex()
syscall(2) returns long, not int. Says Clang:
qfutex_linux_p.h:48:18: error:
implicit conversion loses integer precision: 'long' to 'int'
[-Werror,-Wshorten-64-to-32]
int result = syscall(__NR_futex, addr, op | FUTEX_PRIVATE_FLAG, val, val2, addr2, val3);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don't truncate to int in _q_futex(), pass it as long into the few
callers that care about the result.
Amends the start of the public history, but not picking back all the
way because the code moved around a lot. In 6.7 it found its current
place.
Pick-to: 6.8 6.7
Task-number: QTBUG-103528
Task-number: QTBUG-126219
Change-Id: I54ccaf5564bcaf38f05fab153b1b32379a66a178
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/sqldrivers/ibase/qsql_ibase.cpp')
0 files changed, 0 insertions, 0 deletions
