You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/16 05:33:37 UTC
[incubator-nuttx-apps] 02/03: graphics/nxwm/src/chexcalculator.cxx:
Fix printf format warnings
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit c48e65414b1fe1172029d6f041d615fa438cb320
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Mon Nov 16 14:16:46 2020 +0900
graphics/nxwm/src/chexcalculator.cxx: Fix printf format warnings
---
graphics/nxwm/src/chexcalculator.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/graphics/nxwm/src/chexcalculator.cxx b/graphics/nxwm/src/chexcalculator.cxx
index accd1f1..4cf1fd4 100644
--- a/graphics/nxwm/src/chexcalculator.cxx
+++ b/graphics/nxwm/src/chexcalculator.cxx
@@ -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