From: Hugo Villeneuve Date: Fri, 3 Jan 2014 08:18:02 +0000 (-0500) Subject: Fix [-Wsign-compare] warnings X-Git-Tag: v2.0.0~15 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;ds=sidebyside;h=3a890818270aef19afb0087e8508693620d38ec7;p=emu8051.git Fix [-Wsign-compare] warnings Original warning message: emuconsole.c:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] --- diff --git a/src/cli/emuconsole.c b/src/cli/emuconsole.c index 9948a93..1e53620 100644 --- a/src/cli/emuconsole.c +++ b/src/cli/emuconsole.c @@ -40,7 +40,7 @@ extern struct options_t options; static void Capitalize(char *buffer) { - int k; + size_t k; for (k = 0; k < strlen(buffer); k++) buffer[k] = toupper(buffer[k]); @@ -50,7 +50,7 @@ Capitalize(char *buffer) static void RemoveSpaces(char *buffer) { - int k = 0; + size_t k = 0; while ((k < strlen(buffer)) && isblank(buffer[k])) k++;