summaryrefslogtreecommitdiff
path: root/dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch
blob: 9a1fd466c274a8ed65f56b179c9ea6fe3e7d5274 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/PatternLayout.cpp
+++ b/src/PatternLayout.cpp
@@ -373,7 +373,7 @@
                         literal = "";
                     }
                     if ((minWidth != 0) || (maxWidth != 0)) {
-                        component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0);
+                        component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0);
                         minWidth = maxWidth = 0;
                     }
                     _components.push_back(component);