Skip to content

Fix for dtm-Wsign-compare#151

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

Fix for dtm-Wsign-compare#151
mywave82 merged 1 commit into
adplug:masterfrom
mywave82:dtm-Wsign-compare

Conversation

@mywave82

Copy link
Copy Markdown
Contributor

Fix these warnings:

src/dtm.cpp: In member function ‘virtual bool CdtmLoader::load(const string&, const CFileProvider&)’: src/dtm.cpp:134:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  134 |       for (int j = 0; j < sizeof(conv_inst); j++)
      |                       ~~^~~~~~~~~~~~~~~~~~~
src/dtm.cpp:230:26: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
  230 |           if (restartpos >= i) // bad restart position or empty order list
      |               ~~~~~~~~~~~^~~~

src/dtm.cpp: In member function ‘virtual bool CdtmLoader::load(const string&, const CFileProvider&)’:
src/dtm.cpp:134:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
  134 |       for (int j = 0; j < sizeof(conv_inst); j++)
      |                       ~~^~~~~~~~~~~~~~~~~~~
src/dtm.cpp:230:26: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare]
  230 |           if (restartpos >= i) // bad restart position or empty order list
      |               ~~~~~~~~~~~^~~~
@mywave82 mywave82 merged commit 5451e60 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