Skip to content

Commit ec84f64

Browse files
Warning fixes (GCC 5.3)
1 parent b04396a commit ec84f64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libuavcan/src/marshal/uc_float_spec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ uint16_t IEEE754Converter::nativeIeeeToHalf(float value)
5858
out = uint16_t(in.u >> 13); /* Take the bits! */
5959
}
6060

61-
out |= uint16_t(sign >> 16);
61+
out = uint16_t(out | (sign >> 16));
6262

6363
return out;
6464
}

libuavcan/src/transport/uc_can_io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ uint8_t CanIOManager::makePendingTxMask() const
314314
{
315315
if (!tx_queues_[i]->isEmpty())
316316
{
317-
write_mask |= uint8_t(1 << i);
317+
write_mask = uint8_t(write_mask | (1 << i));
318318
}
319319
}
320320
return write_mask;

0 commit comments

Comments
 (0)