Skip to content

Commit

Permalink
Merge pull request #55 from martincizek/fix-signed-unsigned-comparisons
Browse files Browse the repository at this point in the history
Fix compiler warnings about signed-to-unsigned comparison.
  • Loading branch information
PowerBroker2 authored Feb 1, 2021
2 parents d2112da + 4ebc897 commit bd750cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PacketCRC.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PacketCRC

void generateTable()
{
for (int i = 0; i < tableLen_; ++i)
for (uint16_t i = 0; i < tableLen_; ++i)
{
int curr = i;

Expand All @@ -38,7 +38,7 @@ class PacketCRC

void printTable()
{
for (int i = 0; i < tableLen_; i++)
for (uint16_t i = 0; i < tableLen_; i++)
{
Serial.print(csTable[i], HEX);

Expand Down

0 comments on commit bd750cd

Please sign in to comment.