1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix compilation

This commit is contained in:
Delyan Angelov
2021-04-04 20:14:51 +03:00
parent 824790a2bd
commit accd4d83bf
7 changed files with 115 additions and 11 deletions

View File

@ -653,6 +653,6 @@ pub fn (data voidptr) vbytes(len int) []byte {
// byteptr.vbytes() - makes a V []byte structure from a C style memory buffer. NB: the data is reused, NOT copied!
[unsafe]
pub fn (data byteptr) vbytes(len int) []byte {
pub fn (data &byte) vbytes(len int) []byte {
return unsafe { voidptr(data).vbytes(len) }
}