mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Avoid some VC++ compiler warnings
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
* 3. This notice may not be removed or altered from any source distribution.
|
||||
**/
|
||||
|
||||
#include "Exception.h"
|
||||
#include "common/config.h"
|
||||
#include "Exception.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ bool luax_boolflag(lua_State *L, int table_index, const char *key, bool defaultV
|
||||
if (lua_isnoneornil(L, -1))
|
||||
retval = defaultValue;
|
||||
else
|
||||
retval = lua_toboolean(L, -1);
|
||||
retval = lua_toboolean(L, -1) != 0;
|
||||
|
||||
lua_pop(L, 1);
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user