diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-08 23:27:17 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-08 23:27:17 +0900 |
| commit | d0ecf862d9d2e7aed461bc9360686449f56c5d25 (patch) | |
| tree | 5e71bdbff1c5df66b670044f641f3e3054f74270 /mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | |
| parent | 4b32e651a55e8bd55a9e43474823c01e999ba79e (diff) | |
| download | mruby-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.c | 2 |
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); |
