Blame SOURCES/gcc32-libstdc++-pr9659.patch

4ac4fd
2003-02-11  Scott Snyder  <snyder@fnal.gov>
4ac4fd
4ac4fd
	PR libstdc++/9659
4ac4fd
	* include/bits/fstream.tcc (seekoff): Avoid operator+
4ac4fd
	for pos_type.
4ac4fd
4ac4fd
--- libstdc++-v3/include/bits/fstream.tcc	4 Feb 2003 22:42:32 -0000	1.47
4ac4fd
+++ libstdc++-v3/include/bits/fstream.tcc	13 Feb 2003 21:39:02 -0000	1.48
4ac4fd
@@ -450,9 +450,12 @@ namespace std
4ac4fd
  	      pos_type __tmp =
4ac4fd
  		_M_file.seekoff(__off, ios_base::cur, __mode);
4ac4fd
  	      if (__tmp >= 0)
4ac4fd
- 		// Seek successful.
4ac4fd
- 		__ret = __tmp +
4ac4fd
- 		  std::max(this->_M_out_cur, this->_M_in_cur) - _M_filepos;
4ac4fd
+		{
4ac4fd
+		  // Seek successful.
4ac4fd
+		  __ret = __tmp;
4ac4fd
+		  __ret +=
4ac4fd
+		    std::max(this->_M_out_cur, this->_M_in_cur) - _M_filepos;
4ac4fd
+		}
4ac4fd
 	    }
4ac4fd
 	}
4ac4fd
       _M_last_overflowed = false;