array.v: use `as` cast

pull/3673/head
Alexander Medvednikov 2020-02-07 09:38:28 +01:00
parent b23854b2ab
commit 18a3961992
1 changed files with 2 additions and 2 deletions

View File

@ -370,8 +370,8 @@ pub fn (b []byte) hex() string {
// QTODO
ptr += C.sprintf(ptr as charptr, '%02x', b[i])
}
//return hex as string
return string(hex)
return hex as string
//return string(hex)
}
// copy copies the `src` byte array elements to the `dst` byte array.