Skip to content

Commit

Permalink
Warning fixes (GCC 5.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed May 5, 2016
1 parent b04396a commit ec84f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libuavcan/src/marshal/uc_float_spec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ uint16_t IEEE754Converter::nativeIeeeToHalf(float value)
out = uint16_t(in.u >> 13); /* Take the bits! */
}

out |= uint16_t(sign >> 16);
out = uint16_t(out | (sign >> 16));

return out;
}
Expand Down
2 changes: 1 addition & 1 deletion libuavcan/src/transport/uc_can_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ uint8_t CanIOManager::makePendingTxMask() const
{
if (!tx_queues_[i]->isEmpty())
{
write_mask |= uint8_t(1 << i);
write_mask = uint8_t(write_mask | (1 << i));
}
}
return write_mask;
Expand Down

0 comments on commit ec84f64

Please sign in to comment.