From: Pierre Ossman Date: Wed, 4 Mar 2015 08:52:48 +0000 (+0100) Subject: Change type to fix bad signed/unsigned comparison X-Git-Tag: v1.4.90~32^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7f8450c37722a2577b0ec6f496c69ba05cd80d8;p=tigervnc.git Change type to fix bad signed/unsigned comparison --- diff --git a/vncviewer/fltk_layout.h b/vncviewer/fltk_layout.h index 21fb00a3..9e5c2d47 100644 --- a/vncviewer/fltk_layout.h +++ b/vncviewer/fltk_layout.h @@ -35,9 +35,9 @@ static inline int gui_str_len(const char *str) } /* Escapes all @ in text as those have special meaning in labels */ -static inline int fltk_escape(const char *in, char *out, size_t maxlen) +static inline size_t fltk_escape(const char *in, char *out, size_t maxlen) { - int len; + size_t len; len = 0; @@ -69,9 +69,9 @@ static inline int fltk_escape(const char *in, char *out, size_t maxlen) } /* Filter out unsafe characters for menu entries */ -static inline int fltk_menu_escape(const char *in, char *out, size_t maxlen) +static inline size_t fltk_menu_escape(const char *in, char *out, size_t maxlen) { - int len; + size_t len; len = 0;