OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2005-12-10 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git]
/
libstdc++-v3
/
include
/
ext
/
vstring.h
diff --git
a/libstdc++-v3/include/ext/vstring.h
b/libstdc++-v3/include/ext/vstring.h
index
4a52285
..
1c59e71
100644
(file)
--- a/
libstdc++-v3/include/ext/vstring.h
+++ b/
libstdc++-v3/include/ext/vstring.h
@@
-1665,6
+1665,9
@@
namespace __gnu_cxx
int
compare(const __versa_string& __str) const
{
+ if (this->_M_compare(__str))
+ return 0;
+
const size_type __size = this->size();
const size_type __osize = __str.size();
const size_type __len = std::min(__size, __osize);