Skip to content

Fix undefined behaviour casting negative number to unsigned

Michael Platings requested to merge fix-bad-cast into main

The intent of the cast was likely to ensure numeric values were printed instead of printing as char. Unary + achieves this better via integer promotion.

Merge request reports