Merge pull request #7330 from dhanton/fix/unused-variable-in-fixed-point-write

Fix compilation error when using the fixed-point write procedure and -vet-unused
This commit is contained in:
Jeroen van Rijn
2026-08-14 18:36:35 +02:00
committed by GitHub

View File

@@ -148,7 +148,7 @@ write :: proc(dst: []byte, x: $T/Fixed($Backing, $Fraction_Width)) -> string {
}
}
n := copy(dst, buf[:i])
copy(dst, buf[:i])
return string(dst[:i])
}