]>
Commit | Line | Data |
---|---|---|
deb60be1 PS |
1 | --- STLport/stlport/stl/_ostream.c.orig 2005-10-05 05:28:51.000000000 +0000 |
2 | +++ STLport/stlport/stl/_ostream.c 2006-10-23 14:52:24.000000000 +0000 | |
3 | @@ -209,7 +209,9 @@ | |
4 | */ | |
5 | template <class _CharT, class _Traits> | |
6 | basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(short __x) { | |
7 | - long __tmp = ((this->flags() & _Basic_ios::basefield) != ios_base::dec)?(unsigned short)__x:__x; | |
8 | + long __tmp = __x; | |
9 | + if ((this->flags() & _Basic_ios::basefield) != ios_base::dec) | |
10 | + __tmp = (unsigned short)__x; | |
11 | return _M_put_num(*this, __tmp); | |
12 | } | |
13 | ||
14 | @@ -220,7 +222,9 @@ | |
15 | ||
16 | template <class _CharT, class _Traits> | |
17 | basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(int __x) { | |
18 | - long __tmp = ((this->flags() & _Basic_ios::basefield) != ios_base::dec)?(unsigned int)__x:__x; | |
19 | + long __tmp = __x; | |
20 | + if ((this->flags() & _Basic_ios::basefield) != ios_base::dec) | |
21 | + __tmp = (unsigned int)__x; | |
22 | return _M_put_num(*this, __tmp); | |
23 | } | |
24 |