SOURCES: STLport-type_promotion.patch (NEW) - avoid unwanted type ...
pluto
pluto at pld-linux.org
Mon Oct 23 16:56:05 CEST 2006
Author: pluto Date: Mon Oct 23 14:56:05 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- avoid unwanted type promotions.
---- Files affected:
SOURCES:
STLport-type_promotion.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/STLport-type_promotion.patch
diff -u /dev/null SOURCES/STLport-type_promotion.patch:1.1
--- /dev/null Mon Oct 23 16:56:05 2006
+++ SOURCES/STLport-type_promotion.patch Mon Oct 23 16:56:00 2006
@@ -0,0 +1,24 @@
+--- STLport/stlport/stl/_ostream.c.orig 2005-10-05 05:28:51.000000000 +0000
++++ STLport/stlport/stl/_ostream.c 2006-10-23 14:52:24.000000000 +0000
+@@ -209,7 +209,9 @@
+ */
+ template <class _CharT, class _Traits>
+ basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(short __x) {
+- long __tmp = ((this->flags() & _Basic_ios::basefield) != ios_base::dec)?(unsigned short)__x:__x;
++ long __tmp = __x;
++ if ((this->flags() & _Basic_ios::basefield) != ios_base::dec)
++ __tmp = (unsigned short)__x;
+ return _M_put_num(*this, __tmp);
+ }
+
+@@ -220,7 +222,9 @@
+
+ template <class _CharT, class _Traits>
+ basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(int __x) {
+- long __tmp = ((this->flags() & _Basic_ios::basefield) != ios_base::dec)?(unsigned int)__x:__x;
++ long __tmp = __x;
++ if ((this->flags() & _Basic_ios::basefield) != ios_base::dec)
++ __tmp = (unsigned int)__x;
+ return _M_put_num(*this, __tmp);
+ }
+
================================================================
More information about the pld-cvs-commit
mailing list