Skip to content

Commit de5af03

Browse files
committed
fix: change strconv.Atoi to strconv.ParseUint for better type handling
1 parent fd22800 commit de5af03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angch/2015-07/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func main() {
7979
left = ops[0]
8080
dest = ops[1]
8181
// fmt.Println(left, right)
82-
num, err := strconv.Atoi(left)
82+
num, err := strconv.ParseUint(left, 10, 16)
8383
if err == nil {
8484
// 123 -> x
8585
wirings[dest] = Wiring{

0 commit comments

Comments
 (0)