Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PSD import on ARM #3589

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

jreichel-nvidia
Copy link
Contributor

The code assumes "char" is "signed char" (as on x86), but on ARM "char" is "unsigned char". The local cast was the least intrusive solution, one could also change the signature of that function and cast in the caller ...

Verified with a proprietary test image. I'd guess that the OIIO testsuite should uncover the problem when run on ARM.

  • I have read the contribution guidelines.
  • If this is more extensive than a small change to existing code, I
    have previously submitted a Contributor License Agreement
    (individual, and if there is any way my
    employers might think my programming belongs to them, then also
    corporate).
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • My code follows the prevailing code style of this project.

The code assumes "char" is "signed char" (as on x86), but on ARM "char" is
"unsigned char".
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lgritz lgritz merged commit 3e3fba6 into AcademySoftwareFoundation:master Oct 7, 2022
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Oct 7, 2022
The code assumes "char" is "signed char" (as on x86), but on ARM "char" is
"unsigned char".

Co-authored-by: Joachim Reichel <joachim.reichel@posteo.de>
@aras-p
Copy link
Contributor

aras-p commented Oct 7, 2022

This might be fixing this old bug report too btw: #1189

@lgritz
Copy link
Collaborator

lgritz commented Oct 7, 2022

I think that's a good bet, yeah.

lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Oct 8, 2022
The code assumes "char" is "signed char" (as on x86), but on ARM "char" is
"unsigned char".

Co-authored-by: Joachim Reichel <joachim.reichel@posteo.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants