Fix logic in is_nil procedure: a non_nil slice means there is data to check.

This commit is contained in:
Andrea Piseri
2022-02-02 20:07:38 +01:00
parent e250475bf9
commit e190c024fd

View File

@@ -234,7 +234,7 @@ is_nil :: proc(v: any) -> bool {
return true
}
data := as_bytes(v)
if data != nil {
if data == nil {
return true
}
for v in data {