summaryrefslogtreecommitdiff
path: root/src/components/rle
diff options
context:
space:
mode:
authorJonathan Vander Mey <jonathan@vandermey.ca>2021-05-24 18:17:56 -0400
committerJF002 <JF002@users.noreply.github.com>2021-06-12 20:04:19 +0200
commite90e8c7426f9a44e696b208a5b393a60476a3d43 (patch)
tree4e9efe1981b26c0cfe56f958145e59ffacd0383f /src/components/rle
parent006771699fc5c1a0906920fd16998ec5295227ac (diff)
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.
Diffstat (limited to 'src/components/rle')
-rw-r--r--src/components/rle/RleDecoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/rle/RleDecoder.h b/src/components/rle/RleDecoder.h
index 0f607fb8..31c1ed10 100644
--- a/src/components/rle/RleDecoder.h
+++ b/src/components/rle/RleDecoder.h
@@ -21,7 +21,7 @@ namespace Pinetime {
const uint8_t* buffer;
size_t size;
- int encodedBufferIndex = 0;
+ size_t encodedBufferIndex = 0;
int y = 0;
uint16_t bp = 0;
uint16_t foregroundColor = 0xffff;