fix lua project compile error

This commit is contained in:
andyque 2015-05-25 13:42:54 +08:00
parent 81d562803b
commit 81070a5299
1 changed files with 2 additions and 2 deletions

View File

@ -76,9 +76,9 @@ namespace cocostudio
customOptions.Accept(writer); customOptions.Accept(writer);
auto stack = LuaEngine::getInstance()->getLuaStack(); auto stack = LuaEngine::getInstance()->getLuaStack();
stack->pushString(classType.c_str(), classType.size()); stack->pushString(classType.c_str(), static_cast<int>(classType.size()));
stack->pushObject(widget, "cc.Ref"); stack->pushObject(widget, "cc.Ref");
stack->pushString(buffer.GetString(), buffer.Size()); stack->pushString(buffer.GetString(), static_cast<int>(buffer.GetSize()));
stack->executeFunctionByHandler(_setPropsFunc, 3); stack->executeFunctionByHandler(_setPropsFunc, 3);
} }
} }