Change rb_gc_impl_get_profile_total_time to return unsigned long long

This commit is contained in:
Peter Zhu 2024-09-17 11:39:43 -04:00
parent 5de7517bcb
commit 2af080bd30
Notes: git 2024-09-17 19:23:00 +00:00
4 changed files with 5 additions and 5 deletions

2
gc.rb
View file

@ -352,7 +352,7 @@ module GC
# Return measured \GC total time in nano seconds.
def self.total_time
Primitive.cexpr! %{
rb_gc_impl_get_profile_total_time(rb_gc_get_objspace())
ULL2NUM(rb_gc_impl_get_profile_total_time(rb_gc_get_objspace()))
}
end
end