Skip to content

Commit

Permalink
fix reflect.any_base and reflect.any_core with any's containing nil
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Jul 21, 2024
1 parent 51733fc commit 3e618be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/reflect/reflect.odin
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ when !ODIN_NO_RTTI {
@(require_results)
any_base :: proc(v: any) -> any {
v := v
if v != nil {
if v.id != nil {
v.id = typeid_base(v.id)
}
return v
}
@(require_results)
any_core :: proc(v: any) -> any {
v := v
if v != nil {
if v.id != nil {
v.id = typeid_core(v.id)
}
return v
Expand Down

0 comments on commit 3e618be

Please sign in to comment.