From 9394a95a6c43f853ce615706b8ff30992489d6cc Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sat, 25 Apr 2015 14:15:15 +0200 Subject: [PATCH] Fixed formatting string type mismatches The "%zd" conversion specification seems to produce no warnings on both 32-bit and 64-bit systems. --- src/gmenu2x.cpp | 2 +- src/wallpaperdialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmenu2x.cpp b/src/gmenu2x.cpp index 8e710d3..ffdbb70 100644 --- a/src/gmenu2x.cpp +++ b/src/gmenu2x.cpp @@ -996,7 +996,7 @@ void GMenu2X::editLink() { rename(linkApp->getFile().c_str(),newFileName.c_str()); 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()); } diff --git a/src/wallpaperdialog.cpp b/src/wallpaperdialog.cpp index 4fd0365..079fa2d 100644 --- a/src/wallpaperdialog.cpp +++ b/src/wallpaperdialog.cpp @@ -57,7 +57,7 @@ bool WallpaperDialog::exec() vector wallpapers = fl.getFiles(); - DEBUG("Wallpapers: %i\n", wallpapers.size()); + DEBUG("Wallpapers: %zd\n", wallpapers.size()); uint i, selected = 0, firstElement = 0, iY;