Commit 46b29185 authored by Don Gagne's avatar Don Gagne

Fix -Wsign-compare and -Wtype-limits

parent 1e37331d
......@@ -241,8 +241,7 @@ void QGCJSBSimLink::readBytes()
// Echo data for debugging purposes
std::cerr << __FILE__ << __LINE__ << "Received datagram:" << std::endl;
int i;
for (i=0; i<s; i++)
for (unsigned int i=0; i<s; i++)
{
unsigned int v=data[i];
fprintf(stderr,"%02x ", v);
......
......@@ -87,7 +87,7 @@ void MAVLinkDecoder::receiveMessage(LinkInterface* link,mavlink_message_t messag
time = getUnixTimeFromMs(message.sysid, time);
// Send out all field values for this message
for (int i = 0; i < messageInfo[msgid].num_fields; ++i)
for (unsigned int i = 0; i < messageInfo[msgid].num_fields; ++i)
{
emitFieldValue(&message, i, time);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment