diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 16:41:43 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-25 16:41:43 -0400 |
| commit | b2033f6d6d8918ed9ac72468aaa5faf96f8157dd (patch) | |
| tree | 94d8697b8d664d716feeaa3831fa494c1eedcb6f /lib | |
| parent | f2f43f2e239890847c2f1833ad2e7baf07108145 (diff) | |
Optimize codegen for enums: no longer bother with a struct wrapper, but
just use a C enum type instead. This will make it easier to use
externally defined enums in the future.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/time/time.tm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time/time.tm b/lib/time/time.tm index db0b9538..456b5f08 100644 --- a/lib/time/time.tm +++ b/lib/time/time.tm @@ -140,7 +140,7 @@ struct Time(tv_sec:Int64, tv_usec:Int64; extern) @ret.minute = I(info.tm_min); @ret.second = I(info.tm_sec); @ret.nanosecond = I(@t.tv_usec); - @ret.weekday.$tag = info.tm_wday + 1; + @ret.weekday = info.tm_wday + 1; @ret.day_of_year = I(info.tm_yday); @ret.timezone = @timezone; } |
