summaryrefslogtreecommitdiff
path: root/dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch')
-rw-r--r--dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch b/dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch
new file mode 100644
index 000000000000..9a1fd466c274
--- /dev/null
+++ b/dev-libs/log4cpp/files/log4cpp-1.1.4-gcc43.patch
@@ -0,0 +1,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);