2
0
Эх сурвалжийг харах

app_lua: use define SR_KEMI_FALSE instead of 0 for bool return decision

Daniel-Constantin Mierla 9 жил өмнө
parent
commit
3a69a01054

+ 1 - 1
modules/app_lua/app_lua_sr.c

@@ -1430,7 +1430,7 @@ int sr_kemi_return(lua_State* L, sr_kemi_t *ket, int rc)
 		lua_pushinteger(L, rc);
 		lua_pushinteger(L, rc);
 		return 1;
 		return 1;
 	}
 	}
-	if(ket->rtype==SR_KEMIP_BOOL && rc!=0) {
+	if(ket->rtype==SR_KEMIP_BOOL && rc!=SR_KEMI_FALSE) {
 		return app_lua_return_true(L);
 		return app_lua_return_true(L);
 	}
 	}
 	return app_lua_return_false(L);
 	return app_lua_return_false(L);