refactor: use MaxInt32 instead of MaxInt
This commit is contained in:
parent
50605907c7
commit
825e65d930
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue