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: Implicit Conversion Error #5271

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Fix: Implicit Conversion Error #5271

merged 2 commits into from
Nov 2, 2023

Conversation

Ipomoea
Copy link
Contributor

@Ipomoea Ipomoea commented Oct 11, 2023

In latest versions of XCode when building Assimp for ARM processor Implicit conversion loses integer precision warning is treated as error.
It happens when we try to assign unsigned long value (which is 8 bytes sized) to int variable (which is 4 bytes). static_cast covers this problem here and it is safe because length check before conversion already exists.

Copy link
Member

@kimkulling kimkulling left a comment

Choose a reason for hiding this comment

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

Looks fine.

@kimkulling kimkulling merged commit a7cfa32 into assimp:master Nov 2, 2023
11 checks passed
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants