Skip to content

Commit

Permalink
Fix of from_float.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Sep 5, 2023
1 parent e5f9cc2 commit 74649ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/time/time.c3
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn Duration ms(long l) @inline => (Duration)l * MS;
fn Duration sec(long l) @inline => (Duration)l * SEC;
fn Duration min(long l) @inline => (Duration)l * MIN;
fn Duration hour(long l) @inline => (Duration)l * HOUR;
fn Duration from_float(double s) @inline => (Duration)(s * SEC);
fn Duration from_float(double s) @inline => (Duration)(s * (double)SEC);

struct DateTime
{
Expand Down

0 comments on commit 74649ef

Please sign in to comment.