use the 'z' modifier for printing 'size_t' like variables

This commit is contained in:
Paul Tagliamonte 2012-04-10 09:27:11 +02:00 committed by Mathias Gumz
parent 56af5a1635
commit e6a01dcabb

View file

@ -495,7 +495,7 @@ void ImageControl::createColorTable() {
}
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 @@ void ImageControl::createColorTable() {
}
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);