Skip to content

Commit

Permalink
Merge pull request #3957 from laytan/fix-any_base-and-any_core
Browse files Browse the repository at this point in the history
fix `reflect.any_base` and `reflect.any_core` with any's containing nil
  • Loading branch information
laytan committed Jul 21, 2024
2 parents 51733fc + 3e618be commit 68550cf
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 68550cf

Please sign in to comment.