Skip to content

Commit 3e3fba6

Browse files
Fix PSD import on ARM. (#3589)
The code assumes "char" is "signed char" (as on x86), but on ARM "char" is "unsigned char". Co-authored-by: Joachim Reichel <[email protected]>
1 parent f60205a commit 3e3fba6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/psd.imageio/psdinput.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,8 @@ PSDInput::decompress_packbits(const char* src, char* dst,
20132013
int length;
20142014

20152015
while (src_remaining > 0 && dst_remaining > 0) {
2016-
header = *src++;
2016+
header = *reinterpret_cast<const signed char*>(src);
2017+
src++;
20172018
src_remaining--;
20182019

20192020
if (header == 128)

0 commit comments

Comments
 (0)