Quellcode durchsuchen

Use parentheses in 'luaL_pushstdstring' macro

Ole Krüger vor 10 Jahren
Ursprung
Commit
fe7ba20f18
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lib/luwra/types.hpp

+ 1 - 1
lib/luwra/types.hpp

@@ -92,7 +92,7 @@ int push(State* state, T value) {
 	 * push a `std::string` as string onto the stack.
 	 */
 	#define luaL_pushstdstring(state, stdstring) \
-		(lua_pushstring(state, stdstring.c_str()))
+		(lua_pushstring(state, (stdstring).c_str()))
 #endif
 
 namespace internal {