Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix littleEndian to LittleEndian (oops)
  • Loading branch information
nkronenfeld committed May 29, 2017
1 parent a6127cf commit 13fdfc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generation/salt/macro_edge_tile.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ func (m *MacroEdgeTile) convertTile(coord *binning.TileCoord, input []byte) ([]b
points := make([]float32, edges * 6)
for i := 0; i < edges; i++ {
srcXBits := binary.LittleEndian.Uint32(input[i*20 + 0 : i*20 + 4])
srcYBits := binary.littleEndian.Uint32(input[i*20 + 4 : i*20 + 8])
srcYBits := binary.LittleEndian.Uint32(input[i*20 + 4 : i*20 + 8])
dstXBits := binary.LittleEndian.Uint32(input[i*20 + 8 : i*20 + 12])
dstYBits := binary.littleEndian.Uint32(input[i*20 + 12 : i*20 + 16])
weightBits := binary.littleEndian.Uint32(input[i*20 + 16 : i*20 + 20])
dstYBits := binary.LittleEndian.Uint32(input[i*20 + 12 : i*20 + 16])
weightBits := binary.LittleEndian.Uint32(input[i*20 + 16 : i*20 + 20])

srcX := math.Float32frombits(srcXBits) - offsetX
srcY := math.Float32frombits(srcYBits) - offsetY
Expand Down

0 comments on commit 13fdfc9

Please sign in to comment.