diff --git a/src/modules/image/devil/ImageData.cpp b/src/modules/image/devil/ImageData.cpp index 5d0742df7..b5bb8183f 100644 --- a/src/modules/image/devil/ImageData.cpp +++ b/src/modules/image/devil/ImageData.cpp @@ -88,7 +88,7 @@ namespace devil // Bind the image. ilBindImage(image); - bool success = ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, 0); + bool success = (ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, 0) == IL_TRUE); int err = ilGetError(); if (err != IL_NO_ERROR){ switch (err) { diff --git a/src/modules/joystick/sdl/wrap_Joystick.cpp b/src/modules/joystick/sdl/wrap_Joystick.cpp index a76e2c60b..7c3c2de00 100644 --- a/src/modules/joystick/sdl/wrap_Joystick.cpp +++ b/src/modules/joystick/sdl/wrap_Joystick.cpp @@ -110,7 +110,7 @@ namespace sdl for (unsigned int i = 1; i < num; i++) { - buttonlist[counter++] = luaL_checknumber(L, i+1); + buttonlist[counter++] = (int) luaL_checknumber(L, i+1); } buttonlist[counter] = -1;