Merge pull request #4759 from Dhilan007/develop_crash

fix crash related to not support the z length modifier for size_t on vs
This commit is contained in:
minggo 2014-01-01 18:47:21 -08:00
commit 3a1c5e4f6e
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))