projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd75401
)
Fix [-Wsign-compare] warnings
author
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 3 Jan 2014 08:18:02 +0000
(
03:18
-0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 3 Jan 2014 08:18:02 +0000
(
03:18
-0500)
Original warning message:
emuconsole.c:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
src/cli/emuconsole.c
patch
|
blob
|
history
diff --git
a/src/cli/emuconsole.c
b/src/cli/emuconsole.c
index
9948a93
..
1e53620
100644
(file)
--- a/
src/cli/emuconsole.c
+++ b/
src/cli/emuconsole.c
@@
-40,7
+40,7
@@
extern struct options_t options;
static void
Capitalize(char *buffer)
{
-
in
t 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)
{
-
in
t k = 0;
+
size_
t k = 0;
while ((k < strlen(buffer)) && isblank(buffer[k]))
k++;