summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-12-02 23:36:24 -0800
committerJani Heikkinen <jani.heikkinen@qt.io>2016-12-07 05:58:59 +0000
commitb11cf357e178aee4b9fa051014e0ec68b7338361 (patch)
tree7fed8dc5161a6897d774f3101d41623ea182382a
parentdc624e2180404cbc14e442548829388c9636cdc9 (diff)
Fix ICC warning about conversion changing sign
error #68: integer conversion resulted in a change of sign QByteArray elements are char, not quint8. Change-Id: I73fa1e59a4844c43a109fffd148caecfb59c95cc Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
-rw-r--r--src/serialbus/qmodbusserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialbus/qmodbusserver.cpp b/src/serialbus/qmodbusserver.cpp
index 1a16347..c9e661c 100644
--- a/src/serialbus/qmodbusserver.cpp
+++ b/src/serialbus/qmodbusserver.cpp
@@ -1254,7 +1254,7 @@ QModbusResponse QModbusServerPrivate::processEncapsulatedInterfaceTransportReque
objectData[1] = quint8(object.size());
objectData += object;
if (payload.size() + objectData.size() > 253) {
- payload[3] = quint8(0xff); // more follows
+ payload[3] = char(0xff); // more follows
payload[4] = id; // next object id
break;
}