aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 09:51:11 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 09:51:11 +0000
commit22ffac1cf11a57d16423cc37d13b365a9d22a310 (patch)
treebeff1b4fc53da43aeb1a3c7c671a03c24ad41ff8 /win/rfb_win32
parent32492a6336a0e0955a23be3448d08e7babad0b82 (diff)
downloadtigervnc-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.cxx4
-rw-r--r--win/rfb_win32/EventManager.h2
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;
};
};