Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

CFileSystem: Fix signed integer conversion on MinGW #291

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

SmallJoker
Copy link
Member

Fixes minetest/minetest#14381

How to test:

  1. Reproduce the crash (on Windows or Wine)
  2. After the buildbot of this PR finished compiling, do check its "Artifacts" section and overwrite the IrrlichtMt.dll file of a comparably recent Minetest buildbot artifact.
  3. Crash no longer happens
  4. ???
  5. Profit

@SmallJoker SmallJoker added the bug Something isn't working label Feb 18, 2024
Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

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

Judging by the code, this should be fine, and should fix bugs on 64-bit Windows systems using MinGW builds. I haven't tested, though.

@SmallJoker
Copy link
Member Author

Retested the uintptr_t to intptr_t change and can confirm it still works.

@sfan5 sfan5 merged commit 2bb2d3f into minetest:master Feb 18, 2024
19 checks passed
@SmallJoker
Copy link
Member Author

FYI @mzeilfelder Although I did not test upstream Irrlicht yet, it is likely that the file picker dialogue will show the same crash issue on 64-bit MinGW builds. Letting you know in case there's already such issues reported.

@mzeilfelder
Copy link

Thanks, but upstream still using 'long' so it's fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when trying to change font under advanced setting Windows 11 - Minetest 5.8.0
4 participants