mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-06-07 20:53:30 +02:00
patched some warning for raw int to string conversions
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/alexchao26/advent-of-code-go/cast"
|
||||
|
||||
"github.com/alexchao26/advent-of-code-go/util"
|
||||
)
|
||||
|
||||
@@ -80,7 +82,7 @@ func (robot *Robot) GetFloorGrid() {
|
||||
row++
|
||||
robot.floorGrid = append(robot.floorGrid, []string{})
|
||||
default:
|
||||
tileType := string(v)
|
||||
tileType := cast.ASCIIIntToChar(v)
|
||||
robot.floorGrid[row] = append(robot.floorGrid[row], tileType)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user