avoid allocating clock on heap

This commit is contained in:
soypat
2022-10-21 14:55:36 -03:00
committed by Ron Evans
parent 89facf834f
commit dd3ad57efb
+2 -2
View File
@@ -83,8 +83,8 @@ type clock struct {
}
// clock returns the clock identified by cix.
func (clks *clocksType) clock(cix clockIndex) *clock {
return &clock{
func (clks *clocksType) clock(cix clockIndex) clock {
return clock{
&clks.clk[cix],
cix,
}