| Anonymous | Login | Signup for a new account | 11-10-2008 11:12 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001268 | [uClibc++] Other | major | always | 03-09-07 13:56 | 05-29-07 17:01 | ||||
| Reporter | tommi | View Status | public | ||||||
| Assigned To | gkajmowi | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | resolved | Product Version | 0.2.2 | ||||||
| Summary | 0001268: std::string::compare(size_type, size_type, const std::string&, size_type, size_type) does not work properly | ||||||||
| Description |
Due to a wrong calculation of the length of the second substring the method returns a wrong value. std::string l = "Tommi Maekitalo"; std::string s = "Mae"; int c = l.compare(6, 3, s); c should be 0, but is -1. |
||||||||
| Additional Information | Patch attached. The patch also adds some "else" just for aesthetic reasons. | ||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0002413) gkajmowi 05-29-07 17:01 |
Fixed in SVN. I used the provided example code in the test suite itself. |
| Copyright © 2000 - 2006 Mantis Group |