[PATCH 5.10 049/286] x86/lib: Fix overflow when counting digits