ruby / fiddle

A libffi wrapper for Ruby.
BSD 2-Clause "Simplified" License
154 stars 37 forks source link

Prefer String#unpack1 in Fiddle::ValueUtil #118

Closed Maumagnaguagno closed 1 year ago

Maumagnaguagno commented 1 year ago

String#unpack1 is available since Ruby 2.4, and support for older than Ruby 2.5 was dropped by #85. Also simplified a common return statement.

kou commented 1 year ago

Thanks!