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

*char => charptr everywhere

This commit is contained in:
Alexander Medvednikov
2019-12-01 10:33:26 +03:00
parent 698c3823ee
commit 3fea8f3de5
16 changed files with 30 additions and 28 deletions

View File

@ -60,7 +60,7 @@ pub:
}
pub fn vstrlen(s byteptr) int {
return C.strlen(*char(s))
return C.strlen(charptr(s))
}
// Converts a C string to a V string.
@ -200,11 +200,11 @@ pub fn (s string) i64() i64 {
}
pub fn (s string) f32() f32 {
return C.atof(*char(s.str))
return C.atof(charptr(s.str))
}
pub fn (s string) f64() f64 {
return C.atof(*char(s.str))
return C.atof(charptr(s.str))
}
pub fn (s string) u32() u32 {