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 a few warnings #6928

Merged
merged 2 commits into from
Feb 4, 2024
Merged

Fix a few warnings #6928

merged 2 commits into from
Feb 4, 2024

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Feb 4, 2024

No description provided.

@glebm glebm enabled auto-merge (rebase) February 4, 2024 09:57
@@ -72,10 +72,10 @@ static OffsetType MpqFileRwSeek(struct SDL_RWops *context, OffsetType offset, in
}

if (newPosition == data.position)
return static_cast<OffsetType>(newPosition);
return newPosition;

if (newPosition > data.size) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like MSVC doesn't like this since it's now signed vs unsiged. Other then that the changes looks good 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

glebm added 2 commits February 4, 2024 10:26
Fixes the following warning:

    mpq/mpq_sdl_rwops.cpp:82:25: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
       82 |         if (newPosition < 0) {
@glebm glebm merged commit 25c1c5b into diasurgical:master Feb 4, 2024
23 checks passed
@glebm glebm deleted the fix-wcompare branch February 4, 2024 11:30
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.

2 participants