mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #1465 from ap29600/reflect_is_nil_fix
Fix logic in `is_nil` procedure
This commit is contained in:
@@ -234,7 +234,7 @@ is_nil :: proc(v: any) -> bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
data := as_bytes(v)
|
data := as_bytes(v)
|
||||||
if data != nil {
|
if data == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
for v in data {
|
for v in data {
|
||||||
|
|||||||
Reference in New Issue
Block a user