diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
commit | 5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5 (patch) | |
tree | 8c3438ffdacb5188cae93df720219fb96c242505 /vncviewer/cocoa.mm | |
parent | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b (diff) | |
download | tigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.tar.gz tigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.zip |
Fix bad signed/unsigned comparisons
Either by casting, or switching to a more appropriate type
for the variable.
Diffstat (limited to 'vncviewer/cocoa.mm')
-rw-r--r-- | vncviewer/cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vncviewer/cocoa.mm b/vncviewer/cocoa.mm index 09921000..e51cba9d 100644 --- a/vncviewer/cocoa.mm +++ b/vncviewer/cocoa.mm @@ -57,7 +57,7 @@ int cocoa_capture_display(Fl_Window *win, bool all_displays) if (CGGetActiveDisplayList(16, displays, &count) != kCGErrorSuccess) return 1; - if (count != Fl::screen_count()) + if (count != (unsigned)Fl::screen_count()) return 1; #ifdef HAVE_FLTK_FULLSCREEN_SCREENS @@ -424,7 +424,7 @@ int cocoa_event_keysym(const void *event) NSEvent *nsevent; UInt16 key_code; - int i; + size_t i; NSString *chars; UInt32 modifiers; |