array.v: use `as` cast
parent
b23854b2ab
commit
18a3961992
|
@ -370,8 +370,8 @@ pub fn (b []byte) hex() string {
|
||||||
// QTODO
|
// QTODO
|
||||||
ptr += C.sprintf(ptr as charptr, '%02x', b[i])
|
ptr += C.sprintf(ptr as charptr, '%02x', b[i])
|
||||||
}
|
}
|
||||||
//return hex as string
|
return hex as string
|
||||||
return string(hex)
|
//return string(hex)
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy copies the `src` byte array elements to the `dst` byte array.
|
// copy copies the `src` byte array elements to the `dst` byte array.
|
||||||
|
|
Loading…
Reference in New Issue