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

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