Browse Source

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

Andrea Piseri 3 years ago
parent
commit
e190c024fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/reflect/reflect.odin

+ 1 - 1
core/reflect/reflect.odin

@@ -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 {