fix some compiler warnings

This commit is contained in:
Dirk-Jan C. Binnema
2020-11-01 14:20:12 +02:00
parent 6b8ccff572
commit 2135844e1b
3 changed files with 14 additions and 12 deletions

View File

@ -66,10 +66,12 @@ install_sig_handler (void)
static void
cookie(size_t n)
{
const auto num{static_cast<unsigned>(n)};
if (tty) // for testing.
::printf ("[%x]", n);
::printf ("[%x]", num);
else
::printf (COOKIE_PRE "%x" COOKIE_POST, n);
::printf (COOKIE_PRE "%x" COOKIE_POST, num);
}
static void