Procházet zdrojové kódy

Use parentheses in 'luaL_pushstdstring' macro

Ole Krüger před 10 roky
rodič
revize
fe7ba20f18
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 {