1. miriam_gsm81
  2. love

Commits

Bart van Strien  committed 8cddd8b

Fix 2 compiler warnings

  • Participants
  • Parent commits e6abd96
  • Branches default

Comments (0)

Files changed (2)

File src/modules/image/devil/ImageData.cpp

View file
 		// 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) {

File src/modules/joystick/sdl/wrap_Joystick.cpp

View file
 		
 		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;