From 13fdfc9e62bde22c0d7fb27de3633135f75f1aa5 Mon Sep 17 00:00:00 2001 From: Nathan Kronenfeld Date: Mon, 29 May 2017 18:04:48 -0400 Subject: [PATCH] Fix littleEndian to LittleEndian (oops) --- generation/salt/macro_edge_tile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generation/salt/macro_edge_tile.go b/generation/salt/macro_edge_tile.go index 42e8aaa..9ac800c 100644 --- a/generation/salt/macro_edge_tile.go +++ b/generation/salt/macro_edge_tile.go @@ -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