Skip to content

Commit

Permalink
fix: Tm as result: requires explicit initializtion
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Jul 9, 2024
1 parent 5d1df9f commit eed717c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ else:
func initTm*(tm: var Tm) =
# a workaround for compile error
tm.tm_mday = 1
func initTm*: Tm = result.initTm()
func initTm*: Tm = result.tm_mday = 1

0 comments on commit eed717c

Please sign in to comment.