summaryrefslogtreecommitdiff
path: root/src/Fl_Valuator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Valuator.cxx')
-rw-r--r--src/Fl_Valuator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Valuator.cxx b/src/Fl_Valuator.cxx
index 3bf94b66c..e086ae535 100644
--- a/src/Fl_Valuator.cxx
+++ b/src/Fl_Valuator.cxx
@@ -169,7 +169,7 @@ int Fl_Valuator::format(char* buffer) {
// seems to be needed to get high precission
snprintf(temp, sizeof(temp), "%.12f", A/B);
// strip all trailing 0's
- for (i=strlen(temp)-1; i>0; i--) {
+ for (i=(int) strlen(temp)-1; i>0; i--) {
if (temp[i]!='0') break;
}
// count digits until we find the decimal point (or comma or whatever