Date:2015-04-25 14:15:15 (8 years 11 months ago)
Author:Maarten ter Huurne
Commit:9394a95a6c43f853ce615706b8ff30992489d6cc
Message:Fixed formatting string type mismatches

The "%zd" conversion specification seems to produce no warnings on both
32-bit and 64-bit systems.
Files: src/gmenu2x.cpp (1 diff)
src/wallpaperdialog.cpp (1 diff)

Change Details

src/gmenu2x.cpp
996996            rename(linkApp->getFile().c_str(),newFileName.c_str());
997997            linkApp->renameFile(newFileName);
998998
999            INFO("New section index: %i.\n", newSectionIndex - menu->getSections().begin());
999            INFO("New section index: %zd.\n", newSectionIndex - menu->getSections().begin());
10001000
10011001            menu->linkChangeSection(menu->selLinkIndex(), menu->selSectionIndex(), newSectionIndex - menu->getSections().begin());
10021002        }
src/wallpaperdialog.cpp
5757
5858    vector<string> wallpapers = fl.getFiles();
5959
60    DEBUG("Wallpapers: %i\n", wallpapers.size());
60    DEBUG("Wallpapers: %zd\n", wallpapers.size());
6161
6262    uint i, selected = 0, firstElement = 0, iY;
6363

Archive Download the corresponding diff file



interactive