소스 검색

Use parentheses in 'luaL_pushstdstring' macro

Ole Krüger 10 년 전
부모
커밋
fe7ba20f18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {