mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
committed by
Tomasz Dabrowski
parent
d713f8d761
commit
0848407ee5
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user