Skip to content

Commit

Permalink
improve typeof (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Nov 27, 2024
1 parent 8e481be commit f0d0895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/absint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ function abs_typeof(
break
end

if fo != 0 && fo != typed_fieldoffset(typ, i-1)
if (i != typed_fieldcount(typ) && fo != typed_fieldoffset(typ, i+1)) ||
(i == typed_fieldcount(typ) && fo != actual_size(typ))
lasti = i
end
end
Expand Down

0 comments on commit f0d0895

Please sign in to comment.