Skip to content

Fix: Implicit Conversion Error - #5271

Merged
kimkulling merged 2 commits into
assimp:masterfrom
Ipomoea:ipomoea/implicit_conversion_fix
Nov 2, 2023
Merged

kimkulling merged 2 commits into
assimp:masterfrom
Ipomoea:ipomoea/implicit_conversion_fix

Conversation

@Ipomoea

@Ipomoea Ipomoea commented Oct 11, 2023

Copy link
Copy Markdown
Contributor

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.

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

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
@kimkulling

Copy link
Copy Markdown
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.

2 participants