diff options
| author | Jonathan Vander Mey <jonathan@vandermey.ca> | 2021-05-24 22:17:56 (GMT) |
|---|---|---|
| committer | JF002 <JF002@users.noreply.github.com> | 2021-06-12 18:04:19 (GMT) |
| commit | e90e8c7426f9a44e696b208a5b393a60476a3d43 (patch) | |
| tree | 4e9efe1981b26c0cfe56f958145e59ffacd0383f /src | |
| parent | 006771699fc5c1a0906920fd16998ec5295227ac (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')
| -rw-r--r-- | src/components/rle/RleDecoder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/rle/RleDecoder.h b/src/components/rle/RleDecoder.h index 0f607fb..31c1ed1 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; |
