aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAndrea Piseri <andrea.piseri@gmail.com>2022-02-02 20:07:38 +0100
committerAndrea Piseri <andrea.piseri@gmail.com>2022-02-02 20:07:38 +0100
commite190c024fd374aff56f8cd0cf81a16ef4b4b0542 (patch)
tree677cc639da52258de8c2d987cd7feb3eaa7b7949 /core
parente250475bf90491c7d28913ea196c5dd8a166ca42 (diff)
Fix logic in `is_nil` procedure: a non_nil slice means there is data to check.
Diffstat (limited to 'core')
-rw-r--r--core/reflect/reflect.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reflect/reflect.odin b/core/reflect/reflect.odin
index 7f64d0974..05b3a5da0 100644
--- a/core/reflect/reflect.odin
+++ b/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 {