dtolnay / itoa

Fast function for printing integer primitives to a decimal string
Apache License 2.0
306 stars 37 forks source link

Remove redundant size_of check #52

Closed dtolnay closed 2 days ago

dtolnay commented 2 days ago

mem::size_of::<$t>() >= 2 is only false in the i8 and u8 case. An optimizing compiler can easily see that n >= 10000 is also false in that case.