1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 17:08:26 +02:00

Fixed formatting string type mismatches

The "%zd" conversion specification seems to produce no warnings on both
32-bit and 64-bit systems.
This commit is contained in:
Maarten ter Huurne 2015-04-25 14:15:15 +02:00
parent 90a8d90e49
commit 9394a95a6c
2 changed files with 2 additions and 2 deletions

View File

@ -996,7 +996,7 @@ void GMenu2X::editLink() {
rename(linkApp->getFile().c_str(),newFileName.c_str()); rename(linkApp->getFile().c_str(),newFileName.c_str());
linkApp->renameFile(newFileName); linkApp->renameFile(newFileName);
INFO("New section index: %i.\n", newSectionIndex - menu->getSections().begin()); INFO("New section index: %zd.\n", newSectionIndex - menu->getSections().begin());
menu->linkChangeSection(menu->selLinkIndex(), menu->selSectionIndex(), newSectionIndex - menu->getSections().begin()); menu->linkChangeSection(menu->selLinkIndex(), menu->selSectionIndex(), newSectionIndex - menu->getSections().begin());
} }

View File

@ -57,7 +57,7 @@ bool WallpaperDialog::exec()
vector<string> wallpapers = fl.getFiles(); vector<string> wallpapers = fl.getFiles();
DEBUG("Wallpapers: %i\n", wallpapers.size()); DEBUG("Wallpapers: %zd\n", wallpapers.size());
uint i, selected = 0, firstElement = 0, iY; uint i, selected = 0, firstElement = 0, iY;