Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion map180/nzmap/nzmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (pts Points) Medium(b *bytes.Buffer) {
yi, yf := math.Modf(v.Latitude*10 + 480.0)
y := int(yi)

if x >= 0 && x < 150 && y >= 0 && y < 140 {
if x >= 0 && x < 150 && y >= 0 && y < 139 {
p = nzMediumPts[int(x)][y]
pp = nzMediumPts[x+1][y+1]
pts[i].x = p.x + int(float64(pp.x-p.x)*xf)
Expand Down
6 changes: 3 additions & 3 deletions weft/assets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func TestCreateImportTag(t *testing.T) {
"No nonce, one module file",
"",
map[string]*asset{
"test.mjs": &asset{
"test.mjs": {
hashedPath: "/assets/js/hashprefix-test.mjs",
sri: "sha384-abcd",
},
Expand All @@ -351,11 +351,11 @@ func TestCreateImportTag(t *testing.T) {
"Nonce present, two module files",
"abcdefg",
map[string]*asset{
"test1.mjs": &asset{
"test1.mjs": {
hashedPath: "/assets/js/hashprefix-test1.mjs",
sri: "sha384-efgh",
},
"test2.mjs": &asset{
"test2.mjs": {
hashedPath: "/assets/js/hashprefix-test2.mjs",
sri: "sha384-ijkl",
},
Expand Down