[ruby-core:123769] [Ruby Bug#21680] Integer#digits bug starting from Ruby 3.1