diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-29 18:17:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 18:17:57 +1100 |
commit | 7ff287511d8e5d18260202d80d6b8c68368bc5bc (patch) | |
tree | fc39f7377c36e467cfd58da6a5dd9a341fae36e4 /source/core/StarImageProcessing.cpp | |
parent | 667ca6025fb2f33c120fe4afd360afd278c3b82d (diff) | |
parent | 33d696d505e0d5a3716deb72e0e377015edd0d02 (diff) |
Merge pull request #24 from kblaschke/fix-more-compiler-warnings
Fix more compiler warnings
Diffstat (limited to 'source/core/StarImageProcessing.cpp')
-rw-r--r-- | source/core/StarImageProcessing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index a98e7e5..f3a3108 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -182,7 +182,7 @@ ImageOperation imageOperationFromString(StringView string) { c[0] |= (c[0] << 4); c[1] |= (c[1] << 4); c[2] |= (c[2] << 4); - c[3] = 255; + c[3] = static_cast<char>(255); } else if (hexLen == 4) { nibbleDecode(hexPtr, 4, c, 4); @@ -193,7 +193,7 @@ ImageOperation imageOperationFromString(StringView string) { } else if (hexLen == 6) { hexDecode(hexPtr, 6, c, 4); - c[3] = 255; + c[3] = static_cast<char>(255); } else if (hexLen == 8) { hexDecode(hexPtr, 8, c, 4); |