From 040c42ebfdb40db18af8a407967b69a36236c442 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 12 Dec 2013 14:15:08 +0800 Subject: [PATCH] use ssize_t for index --- cocos/2d/CCEventDispatcher.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/2d/CCEventDispatcher.h b/cocos/2d/CCEventDispatcher.h index b8b1aa8efb..5fe81cca95 100644 --- a/cocos/2d/CCEventDispatcher.h +++ b/cocos/2d/CCEventDispatcher.h @@ -136,12 +136,12 @@ private: inline std::vector* getFixedPriorityListeners() const { return _fixedListeners; }; inline std::vector* getSceneGraphPriorityListeners() const { return _sceneGraphListeners; }; - inline int getGt0Index() const { return _gt0Index; }; - inline void setGt0Index(int index) { _gt0Index = index; }; + inline ssize_t getGt0Index() const { return _gt0Index; }; + inline void setGt0Index(ssize_t index) { _gt0Index = index; }; private: std::vector* _fixedListeners; std::vector* _sceneGraphListeners; - int _gt0Index; + ssize_t _gt0Index; }; /** Adds event listener with item */