From fd5065e5b9e8cfabedbd4e9a623a47cd05081624 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 15 Jan 2009 15:49:02 +0000 Subject: [PATCH] fix warning on wrong type for printf precision argument --- src/common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common.cpp b/src/common.cpp index 126a256..30ca0a2 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "common.h" #include "schrooperators.h" @@ -60,7 +61,7 @@ void showEncoderSettings(SchroEncoder *encoder) const SchroEncoderSetting *s = schro_encoder_get_setting_info(i); double val = schro_encoder_setting_get_double(encoder, s->name); - printf(" %s%.*s", s->name, maxlen-strlen(s->name)+1, " "); + printf(" %s%.*s", s->name, (int)(maxlen-strlen(s->name)+1), " "); switch(s->type) { case SCHRO_ENCODER_SETTING_TYPE_BOOLEAN: -- 2.11.4.GIT