use the 'z' modifier for printing 'size_t' like variables
Paul Tagliamonte paultag@fluxbox.org
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/ImageControl.cc
→
src/FbTk/ImageControl.cc
@@ -495,7 +495,7 @@ num_colors = m_colors_per_channel * m_colors_per_channel * m_colors_per_channel;
} if (m_colors_per_channel < 2 || num_colors > static_cast<unsigned>(1 << m_screen_depth)) { - fprintf(stderr, "ImageControl::ImageControl: invalid colormap size %ld " + fprintf(stderr, "ImageControl::ImageControl: invalid colormap size %zd " "(%d/%d/%d) - reducing", num_colors, m_colors_per_channel, m_colors_per_channel, m_colors_per_channel);@@ -543,7 +543,7 @@ }
} if (m_colors_per_channel < 2 || num_colors > static_cast<unsigned>(1 << m_screen_depth)) { - fprintf(stderr,"FbTk::ImageControl: invalid colormap size %ld " + fprintf(stderr,"FbTk::ImageControl: invalid colormap size %zd " "(%d/%d/%d) - reducing", num_colors, m_colors_per_channel, m_colors_per_channel, m_colors_per_channel);