patched some warning for raw int to string conversions

This commit is contained in:
alexchao26
2020-12-28 00:41:49 -05:00
parent 077378f12c
commit c2451d4268
7 changed files with 20 additions and 11 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"strconv"
"strings"
"github.com/alexchao26/advent-of-code-go/cast"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -143,7 +144,7 @@ func (comp *Intcode) Step(input int) {
comp.Outputs = append(comp.Outputs, output)
// NOTE: day25 specific, print out the output message to play the game
fmt.Print(string(output))
fmt.Print(cast.ASCIIIntToChar(output))
comp.InstructionIndex += 2
// 5: jump-if-true: if first param != 0, move pointer to second param, else nothing