array: handle "0" strings

pull/4180/head
Alexander Medvednikov 2020-04-02 01:47:32 +02:00
parent 88d15c6611
commit 507f4ce87a
1 changed files with 3 additions and 1 deletions

View File

@ -381,7 +381,9 @@ pub fn (a []int) str() string {
val := a[i].str()
sb.write(val)
//println('"$val"')
val.free()
if a[i] != 0 {
val.free()
}
if i < a.len - 1 {
sb.write(', ')
}