]> git.pld-linux.org Git - packages/STLport.git/commitdiff
- avoid unwanted type promotions.
authorPaweł Sikora <pluto@pld-linux.org>
Mon, 23 Oct 2006 14:56:00 +0000 (14:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    STLport-type_promotion.patch -> 1.1

STLport-type_promotion.patch [new file with mode: 0644]

diff --git a/STLport-type_promotion.patch b/STLport-type_promotion.patch
new file mode 100644 (file)
index 0000000..4428574
--- /dev/null
@@ -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);
+ }
This page took 0.04861 seconds and 4 git commands to generate.