Fix some minor type conversion warnings.

This commit is contained in:
Unknown W. Brackets 2013-04-19 08:36:32 -07:00
parent 13f1acf80e
commit eab2f8dca2
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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;