diff options
author | Peter Åstrand <astrand@cendio.se> | 2010-02-10 09:51:11 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2010-02-10 09:51:11 +0000 |
commit | 22ffac1cf11a57d16423cc37d13b365a9d22a310 (patch) | |
tree | beff1b4fc53da43aeb1a3c7c671a03c24ad41ff8 /win/rfb_win32 | |
parent | 32492a6336a0e0955a23be3448d08e7babad0b82 (diff) | |
download | tigervnc-22ffac1cf11a57d16423cc37d13b365a9d22a310.tar.gz tigervnc-22ffac1cf11a57d16423cc37d13b365a9d22a310.zip |
Eliminated GCC signed/unsigned warnings:
* eventCount should be unsigned
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3973 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win/rfb_win32')
-rw-r--r-- | win/rfb_win32/EventManager.cxx | 4 | ||||
-rw-r--r-- | win/rfb_win32/EventManager.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/win/rfb_win32/EventManager.cxx b/win/rfb_win32/EventManager.cxx index 0f9993b7..26750807 100644 --- a/win/rfb_win32/EventManager.cxx +++ b/win/rfb_win32/EventManager.cxx @@ -43,9 +43,9 @@ bool EventManager::addEvent(HANDLE event, EventHandler* ecb) { } void EventManager::removeEvent(HANDLE event) { - for (int i=0; i<eventCount; i++) { + for (unsigned int i=0; i<eventCount; i++) { if (events[i] == event) { - for (int j=i; j<eventCount-1; j++) { + for (unsigned int j=i; j<eventCount-1; j++) { events[j] = events[j+1]; handlers[j] = handlers[j+1]; } diff --git a/win/rfb_win32/EventManager.h b/win/rfb_win32/EventManager.h index bb66e340..cd92d45b 100644 --- a/win/rfb_win32/EventManager.h +++ b/win/rfb_win32/EventManager.h @@ -68,7 +68,7 @@ namespace rfb { HANDLE events[MAXIMUM_WAIT_OBJECTS]; EventHandler* handlers[MAXIMUM_WAIT_OBJECTS-1]; - int eventCount; + unsigned int eventCount; }; }; |