diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-07-31 23:56:35 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-07-31 23:56:35 +0900 |
| commit | 1d64ecf0fafc940b4523ee44355840104d2f56fb (patch) | |
| tree | d8ced97f097340dbf3ee8a8b7d2007ea838858c7 /src/time.c | |
| parent | e87c95eba786b91c71f1c3ae8944c9b2e19f8711 (diff) | |
| download | mruby-1d64ecf0fafc940b4523ee44355840104d2f56fb.tar.gz mruby-1d64ecf0fafc940b4523ee44355840104d2f56fb.zip | |
float do not have enough precision if MRB_USE_FLOAT is set
Diffstat (limited to 'src/time.c')
| -rw-r--r-- | src/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c index e71fc17fe..96a3309e4 100644 --- a/src/time.c +++ b/src/time.c @@ -160,7 +160,7 @@ mrb_time_wrap(mrb_state *mrb, struct RClass *tc, struct mrb_time *tm) /* Allocates a mrb_time object and initializes it. */ static struct mrb_time* -mrb_time_alloc(mrb_state *mrb, mrb_float sec, mrb_float usec, enum mrb_timezone timezone) +mrb_time_alloc(mrb_state *mrb, double sec, double usec, enum mrb_timezone timezone) { struct mrb_time *tm; @@ -182,7 +182,7 @@ mrb_time_alloc(mrb_state *mrb, mrb_float sec, mrb_float usec, enum mrb_timezone } static mrb_value -mrb_time_make(mrb_state *mrb, struct RClass *c, mrb_float sec, mrb_float usec, enum mrb_timezone timezone) +mrb_time_make(mrb_state *mrb, struct RClass *c, double sec, double usec, enum mrb_timezone timezone) { return mrb_time_wrap(mrb, c, mrb_time_alloc(mrb, sec, usec, timezone)); } |
