graphics/nxwm/src/chexcalculator.cxx: Fix printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-16 14:16:46 +09:00 committed by Xiang Xiao
parent 2a74046c2d
commit c48e65414b

View File

@ -673,11 +673,11 @@ void CHexCalculator::updateText(void)
if (m_hexMode)
{
std::snprintf(buffer, 24, "%16llX", m_accum);
std::snprintf(buffer, 24, "%16" PRI64X, m_accum);
}
else
{
std::snprintf(buffer, 24, "%lld", m_accum);
std::snprintf(buffer, 24, "%" PRI64d, m_accum);
}
// setText will perform the redraw as well