Sfoglia il codice sorgente

Fixed warning: comparison is always true due to limited range of data type.

bkaradzic 12 anni fa
parent
commit
d95e120430
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/bgfx.cpp

+ 1 - 1
src/bgfx.cpp

@@ -1250,7 +1250,7 @@ namespace bgfx
 	{
 		BGFX_CHECK_MAIN_THREAD();
 		BX_CHECK(NULL != _mem, "_mem can't be NULL");
-		BX_CHECK(_side >= 0 && _side <= 5, "Invalid side %d.", _side);
+		BX_CHECK(_side <= 5, "Invalid side %d.", _side);
 		if (_width == 0
 		||  _height == 0)
 		{