Skip to content

Commit

Permalink
Fix warning on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysarson committed May 10, 2019
1 parent 2a537b5 commit 4bf42e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processor/simulator-src/uartsim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int UartSimulator_tick(UartSimulator *simulator, int i_tx)
uint8_t buf;
if (simulator->try_read(&buf, simulator->read_write_state) == 0)
{
simulator->tx_data = ((~0) << (8 + 0 + 1)) | (buf << 1);
simulator->tx_data = ((~0u) << (8 + 0 + 1)) | (buf << 1);
simulator->tx_busy = (1 << (8 + 0 + 1 + 1)) - 1;
simulator->tx_state = TXDATA;
o_rx = 0;
Expand Down

0 comments on commit 4bf42e0

Please sign in to comment.