Minor bug fix

Minor bug fix
0.0 0


There is a line to be fixed in source. It is line 55 in file CCPointExtension.h
there is:
#define ccp(__X__,__Y__) cocos2d::CCPointMake((float)__X__, (float)__Y__)
there should be:
#define ccp(__X__,__Y__) cocos2d::CCPointMake((float)(__X__), (float)(__Y__))

Example code in which bug reveals
CCSprite *target = CCSprite::spriteWithFile(“Target.png”, CCRectMake(0, 0, 27, 40) );
target->setPosition( ccp(rand() ((int)size.width), rand() ((int)size.height/2)) );

Casts in #define are being done on result of rand() instead on whole expression

Regards Piotr


Thanks! I fix it in this commit https://github.com/cocos2d/cocos2d-x/commit/81c2447070f6f395501e126cf061696ebe2d59c4