Projects
home:pandora:roll
gcc
fix_wrestrict_warnings_from_gcc12.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_wrestrict_warnings_from_gcc12.patch of Package gcc
diff --git a/libstdc++-v3/include/bits/basic_string.tcc b/libstdc++-v3/include/bits/basic_string.tcc index 0696b9660..cedf7f408 100644 --- a/libstdc++-v3/include/bits/basic_string.tcc +++ b/libstdc++-v3/include/bits/basic_string.tcc @@ -527,10 +527,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - const size_type __nleft = (__p + __len1) - __s; - this->_S_move(__p, __s, __nleft); - this->_S_copy(__p + __nleft, __p + __len2, - __len2 - __nleft); + const size_type __nleft = (__s + __len2) - (__p + __len1); + this->_S_move(__p, __s, __len2 - __nleft); + this->_S_copy(__p + __len2 - __nleft, __p + __len2, + __nleft); } } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2