Skip to content

Fix for mus-Wsign-compare#155

Merged
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:mus-Wsign-compare
Feb 26, 2023
Merged

Fix for mus-Wsign-compare#155
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:mus-Wsign-compare

Conversation

@mywave82

Copy link
Copy Markdown
Contributor

Fix this warning:

src/mus.cpp: In member function ‘bool CmusPlayer::LoadTimbreBank(std::string, const CFileProvider&)’: src/mus.cpp:292:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  292 |                 for (int j = 0; j < sizeof(data); j++)
      |                                 ~~^~~~~~~~~~~~~~

src/mus.cpp: In member function ‘bool CmusPlayer::LoadTimbreBank(std::string, const CFileProvider&)’:
src/mus.cpp:292:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  292 |                 for (int j = 0; j < sizeof(data); j++)
      |                                 ~~^~~~~~~~~~~~~~
@mywave82 mywave82 merged commit 74b8306 into adplug:master Feb 26, 2023
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.

1 participant