Skip to content

Commit

Permalink
Update NexHardware.cpp
Browse files Browse the repository at this point in the history
Fix for 32bit int.
  • Loading branch information
zarya authored Nov 2, 2016
1 parent 92b7f4c commit 879341c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NexHardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool recvRetNumber(uint32_t *number, uint32_t timeout)
&& temp[7] == 0xFF
)
{
*number = (temp[4] << 24) | (temp[3] << 16) | (temp[2] << 8) | (temp[1]);
*number = ((uint32_t)temp[4] << 24) | ((uint32_t)temp[3] << 16) | (temp[2] << 8) | (temp[1]);
ret = true;
}

Expand Down

0 comments on commit 879341c

Please sign in to comment.