From a73485a1bc9f8d144d7c74055e876c8557a7f95e Mon Sep 17 00:00:00 2001 From: pandamicro Date: Tue, 13 Dec 2016 18:12:50 +0800 Subject: [PATCH] Use %ld instead of %zd --- cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp index 5cdd975fac..f494ff97e9 100644 --- a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp +++ b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp @@ -1328,7 +1328,7 @@ bool js_CCNode_unschedule(JSContext *cx, uint32_t argc, jsval *vp) auto targetArray = JSScheduleWrapper::getTargetForSchedule(args.get(0)); if (targetArray) { - CCLOGINFO("unschedule target number: %zd", targetArray->count()); + CCLOGINFO("unschedule target number: %ld", static_cast(targetArray->count())); for (const auto& tmp : *targetArray) {