Skip to content

Commit 749357a

Browse files
committed
lint: overflow
1 parent 50f86f2 commit 749357a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvirt/data_source_libvirt_node_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ func resourceLibvirtNodeInfoRead(d *schema.ResourceData, meta interface{}) error
7979
}
8080

8181
func int8ToString(bs [32]int8) string {
82-
ba := []uint8{}
82+
ba := []byte{}
8383
for _, b := range bs {
8484
if b == 0 {
8585
break
8686
}
87-
ba = append(ba, uint8(b))
87+
ba = append(ba, byte(b))
8888
}
8989
return string(ba)
9090
}

0 commit comments

Comments
 (0)