Skip to content

Commit

Permalink
Fix incorrect conversion between integer types (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk authored Sep 16, 2024
1 parent f5cb64f commit 38770ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *Storage) ReadTile(ctx context.Context, level, index, width uint64) ([]b
}

// Return nil when returning a partial tile on a full tile request.
if width == 256 && len(tile)/32 != int(width) {
if width == 256 && uint64(len(tile)/32) != width {
return nil, nil
}

Expand Down

0 comments on commit 38770ff

Please sign in to comment.