mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@ -108,7 +108,7 @@ fn decode_string(root &C.cJSON) string {
|
||||
}
|
||||
// println('decode string valuestring="$root.valuestring"')
|
||||
// return tos(root.valuestring, _strlen(root.valuestring))
|
||||
return tos_clone(root.valuestring) // , _strlen(root.valuestring))
|
||||
return unsafe { tos_clone(root.valuestring) } // , _strlen(root.valuestring))
|
||||
}
|
||||
|
||||
fn C.cJSON_IsTrue(voidptr) bool
|
||||
|
Reference in New Issue
Block a user