refactor: use MaxInt32 instead of MaxInt

This commit is contained in:
vicanso 2022-09-15 20:15:05 +08:00
parent 50605907c7
commit 825e65d930
2 changed files with 2 additions and 2 deletions

View file

@ -442,7 +442,7 @@ func (p *Painter) LineStroke(points []Point) *Painter {
for index, point := range points {
x := point.X
y := point.Y
if y == math.MaxInt {
if y == int(math.MaxInt32) {
p.Stroke()
shouldMoveTo = true
continue