diff --git a/cocos/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp b/cocos/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp index bb8d05a1b9..3673311eae 100644 --- a/cocos/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp +++ b/cocos/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp @@ -76,9 +76,9 @@ namespace cocostudio customOptions.Accept(writer); auto stack = LuaEngine::getInstance()->getLuaStack(); - stack->pushString(classType.c_str(), classType.size()); + stack->pushString(classType.c_str(), static_cast(classType.size())); stack->pushObject(widget, "cc.Ref"); - stack->pushString(buffer.GetString(), buffer.Size()); + stack->pushString(buffer.GetString(), static_cast(buffer.GetSize())); stack->executeFunctionByHandler(_setPropsFunc, 3); } }