diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:11:55 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:30:27 +0100 |
commit | cd23817bf1884fee4457ab3381320b0c8fc33f48 (patch) | |
tree | 9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/core/StarImageProcessing.cpp | |
parent | 28d486446ca176ef0168a7284d85cb49a75a54fb (diff) |
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
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); |