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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user