Skip to content

Commit 0fa88de

Browse files
cxbdashenggopherbot
authored andcommitted
time: remove redundant uint32 conversion in split
cd is a uint32 converted again. Change-Id: Ia41e247e0644c17cd9e0593d79457db77512fc3e GitHub-Last-Rev: 1ba8596 GitHub-Pull-Request: #74679 Reviewed-on: https://go-review.googlesource.com/c/go/+/689055 Auto-Submit: Jorropo <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Jorropo <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent ada30b8 commit 0fa88de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time/time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ func (days absDays) split() (century absCentury, cyear absCyear, ayday absYday)
667667
// so do that instead, saving a few cycles.
668668
// See Neri and Schneider, section 8.3
669669
// for more about this optimization.
670-
hi, lo := bits.Mul32(2939745, uint32(cd))
670+
hi, lo := bits.Mul32(2939745, cd)
671671
cyear = absCyear(hi)
672672
ayday = absYday(lo / 2939745 / 4)
673673
return

0 commit comments

Comments
 (0)