On 2025-03-09 14:42, Lenard Mollenkopf wrote: > + return i < 0 ? -(unsigned int)i : i; It's better to avoid casts, for reasons mentioned earlier in this thread. Like this: unsigned int u = i; return i < 0 ? -u : u;