News for hackers. Stuff that matters.
Re:Checked integer arithmetic in the prospect of C23 by jcranmer on Monday December 19, 2022 @09:20PM (#34060739)
u32::checked_add_signed solves one of the pairs (u32 + i32 -> u32), but there's nothing for the other one (u32 - u32 -> i32).
Re:Checked integer arithmetic in the prospect of C23 by tialaramex on Tuesday December 20, 2022 @04:27AM (#34063604)
Good point, I'm sure this made sense to me when I wrote it, but I can't ask past me why.