Skip to content

Commit

Permalink
Fix limit being relative (#1919)
Browse files Browse the repository at this point in the history
* Fix limit being relative

* fix
  • Loading branch information
wsmoses authored Sep 28, 2024
1 parent 287b847 commit d91151b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typetree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function to_fullmd(@nospecialize(T::Type), offset::Int, lim::Int)
for (sT, sO) in offs
if sO >= offset
if sO == offset
minOff = sO
minoff = sO
end
else
minoff = max(minoff, sO)
Expand All @@ -156,7 +156,7 @@ function to_fullmd(@nospecialize(T::Type), offset::Int, lim::Int)
if sO != minoff && (sO < offset)
continue
end
if sO >= lim
if sO >= lim + offset
continue
end
if sT == API.DT_Pointer
Expand Down

0 comments on commit d91151b

Please sign in to comment.