Skip to content

Commit e90e8c7

Browse files
jonvmeyJF002
authored andcommitted
Fix signed/unsigned comparison warning
Changed type of encodedBufferIndex to size_t to eliminate warning. It is fine as a size_t as its only ever compared to another size_t and used as an array index.
1 parent 0067716 commit e90e8c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/rle/RleDecoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Pinetime {
2121
const uint8_t* buffer;
2222
size_t size;
2323

24-
int encodedBufferIndex = 0;
24+
size_t encodedBufferIndex = 0;
2525
int y = 0;
2626
uint16_t bp = 0;
2727
uint16_t foregroundColor = 0xffff;

0 commit comments

Comments
 (0)