summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools')
-rwxr-xr-xmrbgems/mruby-bin-debugger/tools/mrdb/apilist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
index 53f5fe4ef..46201eb07 100755
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -105,7 +105,8 @@ source_file_new(mrb_state *mrb, mrb_debug_context *dbg, char *filename)
static mrb_bool
remove_newlines(char *s, FILE *fp)
{
- char c, *p;
+ int c;
+ char *p;
size_t len;
if ((len = strlen(s)) == 0) {
@@ -120,7 +121,7 @@ remove_newlines(char *s, FILE *fp)
if (*p == '\r') {
/* peek the next character and skip '\n' */
- if ((unsigned char)(c = fgetc(fp)) != '\n') {
+ if ((c = fgetc(fp)) != '\n') {
ungetc(c, fp);
}
}