From eab2f8dca252397e0cc363d3c1b1888da79d6f92 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 19 Apr 2013 08:36:32 -0700 Subject: [PATCH] Fix some minor type conversion warnings. --- UI/MenuScreens.cpp | 2 +- Windows/WndMainWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index b66814e28b..c3de0e96af 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -681,7 +681,7 @@ void SystemScreen::render() { VGrid vlang(530, 100, dp_yres - 50, 10, 10); - for (int i = 0; i < langs_.size(); i++) { + for (size_t i = 0; i < langs_.size(); i++) { std::string code; size_t dot = langs_[i].name.find('.'); if (dot != std::string::npos) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 0399bd52ae..d4844390fe 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -881,7 +881,7 @@ namespace MainWindow return FALSE; int width, height; unsigned char *image_data = 0; - bool bResult = pngLoadPtr(lpRsrc, dwlen, &width, &height, &image_data, false); + bool bResult = pngLoadPtr(lpRsrc, dwlen, &width, &height, &image_data, false) != 0; FreeResource(lpRsrc); if (!bResult) return 0;