mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: x.vstring() instead of string(x) (#6102)
This commit is contained in:
@@ -44,7 +44,7 @@ pub fn resource_path() string {
|
||||
if conv_result == 0 {
|
||||
panic('CFURLGetFileSystemRepresentation failed')
|
||||
}
|
||||
result := string(buffer)
|
||||
result := unsafe { buffer.vstring() }
|
||||
C.CFRelease(resource_dir_url)
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user