summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-02-08 23:27:17 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-02-08 23:27:17 +0900
commitd0ecf862d9d2e7aed461bc9360686449f56c5d25 (patch)
tree5e71bdbff1c5df66b670044f641f3e3054f74270 /mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
parent4b32e651a55e8bd55a9e43474823c01e999ba79e (diff)
downloadmruby-d0ecf862d9d2e7aed461bc9360686449f56c5d25.tar.gz
mruby-d0ecf862d9d2e7aed461bc9360686449f56c5d25.zip
Fixed mixture of signed/unsigned integers
in mrbgems/mruby-bin-debugger.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
index 1c77d1ef8..33e9575bf 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -71,7 +71,7 @@ dirname(mrb_state *mrb, const char *path)
}
p = strrchr(path, '/');
- len = p != NULL ? p - path : strlen(path);
+ len = p != NULL ? (size_t)(p - path) : strlen(path);
dir = mrb_malloc(mrb, len + 1);
strncpy(dir, path, len);