fix crash related to not support the z length modifier for size_t on vs

This commit is contained in:
Dhilan007 2013-12-31 16:32:16 +08:00
parent db475fb43c
commit ebf3faadc3
1 changed files with 2 additions and 2 deletions

View File

@ -378,8 +378,8 @@ void SpriteBatchNode::increaseAtlasCapacity(void)
// this is likely computationally expensive
ssize_t quantity = (_textureAtlas->getCapacity() + 1) * 4 / 3;
CCLOG("cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [%zd] to [%zd].",
_textureAtlas->getCapacity(),
CCLOG("cocos2d: SpriteBatchNode: resizing TextureAtlas capacity from [%d] to [%d].",
static_cast<int>(_textureAtlas->getCapacity()),
quantity);
if (! _textureAtlas->resizeCapacity(quantity))