fix: mrbgems\mruby-time\src\time.c(372): warning C4244: 'function': conversion from 'mrb_int' to 'double', possible loss of data

This commit is contained in:
Tomasz Dąbrowski
2017-09-25 17:06:12 +02:00
committed by Tomasz Dabrowski
parent d713f8d761
commit 0848407ee5
+1 -1
View File
@@ -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 */