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

.str => .cstr() (string.str is private now)

This commit is contained in:
Alexander Medvednikov 2019-04-05 21:03:28 +02:00
parent 8dd6fb1766
commit 45e35eb089

View File

@ -11,7 +11,7 @@ const (
)
fn decode(data string) string {
p := data.str
p := data.cstr()
len := data.len
mut pad := 0
if len > 0 && (len % 4 != 0 || p[len - 1] == `=`) {