aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-04-29 18:49:20 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-04-30 16:56:19 +0000
commit50cd8cf97aa89a48a9fbaaeb2515e529e66c7d43 (patch)
tree4b9db7c25d346f832b64db97cc38e77a81ad2247 /src/qml/jsruntime
parentdb7bfdc06bf68d5e4a78f293033024a60fb92464 (diff)
Fix warning -Wxor-used-as-pow
Thanks clang 10 warning: result of '2^53' is 55; did you mean '1LL << 53'? [-Wxor-used-as-pow] Pick-to: 5.15 5.12 Change-Id: I164ba4ac12d4ae9dbd6651d50b9f5d2c8928d049 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4numberobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4numberobject.cpp b/src/qml/jsruntime/qv4numberobject.cpp
index 13f6912371..0044e0bc68 100644
--- a/src/qml/jsruntime/qv4numberobject.cpp
+++ b/src/qml/jsruntime/qv4numberobject.cpp
@@ -196,7 +196,7 @@ ReturnedValue NumberPrototype::method_isSafeInteger(const FunctionObject *, cons
return Encode(false);
double iv = v.toInteger();
- return Encode(dv == iv && std::fabs(iv) <= (2^53)-1);
+ return Encode(dv == iv && std::fabs(iv) <= (1LL << 53) - 1);
}
ReturnedValue NumberPrototype::method_isNaN(const FunctionObject *, const Value *, const Value *argv, int argc)