diff --git a/cocos/base/ccUtils.cpp b/cocos/base/ccUtils.cpp index c639c65276..6c79d0c5e3 100644 --- a/cocos/base/ccUtils.cpp +++ b/cocos/base/ccUtils.cpp @@ -265,7 +265,7 @@ long long getTimeInMilliseconds() { struct timeval tv; gettimeofday (&tv, nullptr); - return tv.tv_sec * 1000 + tv.tv_usec / 1000; + return (long long)tv.tv_sec * 1000 + tv.tv_usec / 1000; } Rect getCascadeBoundingBox(Node *node)