summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2017-09-25 16:27:59 +0200
committerTomasz Dabrowski <[email protected]>2017-09-27 22:22:05 +0200
commit0e2976bf930881d02a6c9dc64662efce81cea836 (patch)
treec80d87b59a109ec80af1df047f5bbce5bcb9e9f2 /src/range.c
parentb7e71e4cef19a1d9a2ce44911cc8e5b99a8ea332 (diff)
downloadmruby-0e2976bf930881d02a6c9dc64662efce81cea836.tar.gz
mruby-0e2976bf930881d02a6c9dc64662efce81cea836.zip
fix: src\range.c(136): warning C4244: '=': conversion from 'mrb_int' to 'int', possible loss of data
Diffstat (limited to 'src/range.c')
-rw-r--r--src/range.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/range.c b/src/range.c
index eb9a9c61f..c6a5ea924 100644
--- a/src/range.c
+++ b/src/range.c
@@ -131,7 +131,7 @@ mrb_range_initialize(mrb_state *mrb, mrb_value range)
{
mrb_value beg, end;
mrb_bool exclusive;
- int n;
+ mrb_int n;
n = mrb_get_args(mrb, "oo|b", &beg, &end, &exclusive);
if (n != 3) {