aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-27 22:12:56 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-07-07 16:16:46 +0000
commitc802a8582258ca9ad1cc800a9c8e6e46b2ff6f0e (patch)
treec152cfb2b58eb1f7af0ab18979bb15ca2be367bc /src/qml
parent982fa2225b7d69181344a00816cad19042a922e6 (diff)
Fix ICC warning about change of sign
qv4typedarray.cpp(87): error #68: integer conversion resulted in a change of sign Change-Id: Iee8cbc07c4434ce9b560ffff13cf917dd8f9012e Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/jsruntime/qv4typedarray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp
index 429ec96f0b..c355207d94 100644
--- a/src/qml/jsruntime/qv4typedarray.cpp
+++ b/src/qml/jsruntime/qv4typedarray.cpp
@@ -84,7 +84,7 @@ void UInt8ClampedArrayWrite(ExecutionEngine *e, char *data, int index, const Val
return;
}
if (d >= 255) {
- data[index] = (unsigned char)(255);
+ data[index] = (char)(255);
return;
}
double f = std::floor(d);