From ada7ced0a8bde05af8220f9ad82e21220edee99b Mon Sep 17 00:00:00 2001 From: WuHao Date: Thu, 23 Apr 2015 16:40:11 +0800 Subject: [PATCH] change getVecCount to ssize_t --- cocos/2d/MarchingSquare.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos/2d/MarchingSquare.h b/cocos/2d/MarchingSquare.h index cd223522f7..37e209c1bd 100644 --- a/cocos/2d/MarchingSquare.h +++ b/cocos/2d/MarchingSquare.h @@ -41,11 +41,9 @@ public: MarchingSquare(const std::string &filename, const unsigned int threshold = 0); //TODO: should return list of vec2s void trace(); -// unsigned int getAlphaAt(const unsigned int i); -// unsigned int getAlphaAt(int x, int y); void setThreshold(unsigned int threshold){_threshold = threshold;}; unsigned int getThreshold(){return _threshold;}; - unsigned int getVecCount(){return points.size();}; + ssize_t getVecCount(){return points.size();}; std::vector getPoints(){return points;}; void printPoints(); //using Ramer–Douglas–Peucker algorithm