Skip to content

Commit

Permalink
no need for double cast
Browse files Browse the repository at this point in the history
start and end are already *const T, so only need to cast to
change T to VALUE
  • Loading branch information
matsadler committed Dec 8, 2022
1 parent 1051c77 commit 743673c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ where

unsafe {
rb_gc_mark_locations(
start as *const _ as *const VALUE,
end as *const _ as *const VALUE,
start as *const VALUE,
end as *const VALUE,
)
}
}
Expand Down

0 comments on commit 743673c

Please sign in to comment.