diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-01-25 09:38:13 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-01-25 15:02:55 +0100 |
commit | de480dd213815cf77f5da8a1f19365a1092d7c1a (patch) | |
tree | 221d910007a071f200db2eabdf860840db90b1db /src/qml/jsapi | |
parent | ad0e8277fc465e32695344d29dbebe558bf6875f (diff) |
QJSPrimitiveValue: Use operator symbol in lieu of name
Fixes: QTBUG-110585
Pick-to: 6.5
Change-Id: I6acd1ea2a171bd5978bed752f52b8af262936cc2
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r-- | src/qml/jsapi/qjsprimitivevalue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsapi/qjsprimitivevalue.h b/src/qml/jsapi/qjsprimitivevalue.h index 1c85ffe39d..49a00ed180 100644 --- a/src/qml/jsapi/qjsprimitivevalue.h +++ b/src/qml/jsapi/qjsprimitivevalue.h @@ -95,7 +95,7 @@ class QJSPrimitiveValue { // compare mul_int32 in qv4math_p.h auto hadOverflow = qMulOverflow(lhs, rhs, result); - if (((lhs < 0) xor (rhs < 0)) && (*result == 0)) + if (((lhs < 0) ^ (rhs < 0)) && (*result == 0)) return true; // result must be negative 0, does not fit into int return hadOverflow; } |