summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2017-09-25 17:06:12 +0200
committerTomasz Dabrowski <[email protected]>2017-09-27 22:22:04 +0200
commit0848407ee596e554658777c33331a9997e144ffa (patch)
tree95cd0ac77a882cad0e1507b0e3c5ad7f507518cc /mrbgems/mruby-time
parentd713f8d761ad86c8e9346672e980a5741ec4cd62 (diff)
downloadmruby-0848407ee596e554658777c33331a9997e144ffa.tar.gz
mruby-0848407ee596e554658777c33331a9997e144ffa.zip
fix: mrbgems\mruby-time\src\time.c(372): warning C4244: 'function': conversion from 'mrb_int' to 'double', possible loss of data
Diffstat (limited to 'mrbgems/mruby-time')
-rw-r--r--mrbgems/mruby-time/src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 205c6dc33..a620c1dc1 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -369,7 +369,7 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday,
mrb_raise(mrb, E_ARGUMENT_ERROR, "Not a valid time.");
}
- return time_alloc(mrb, (double)nowsecs, ausec, timezone);
+ return time_alloc(mrb, (double)nowsecs, (double)ausec, timezone);
}
/* 15.2.19.6.2 */