浏览代码

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 {