Anonymous | Login | Signup for a new account | 2025-07-27 10:58 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001337 | Zandronum | [All Projects] Bug | public | 2013-05-05 22:17 | 2015-09-05 02:22 | ||||
Reporter | Edward-san | ||||||||
Assigned To | |||||||||
Priority | urgent | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001337: Using the wrong statement to compare two strings in PWO_ParseDef | ||||||||
Description | clang warns:
no comment on this... | ||||||||
Attached Files | |||||||||
![]() |
|
Dusk (developer) 2013-05-06 23:15 |
should use currentSection.Compare ("None") != 0 |
Edward-san (developer) 2013-05-07 09:28 |
How can the author get it right for 'sc' and not for 'currentSection'? |
AlienOverlord (reporter) 2013-06-01 18:35 |
Just lot of assumptions without checking actual variable types, also VS2005 didn't complain about string comparison. First, 'sc' is of type FScanner, while 'currentSection' is FString. I used sc.Compare() because I assumed that it uses some different way to compare strings (probably stricmp or something like that). And I used != operator because I assumed FString implements it and again, VS2005 DID NOT COMPLAIN. |
Torr Samaho (administrator) 2013-06-02 19:48 |
Did anybody test of the code still works when the check is done properly? |
Edward-san (developer) 2013-07-26 20:07 |
Should be okay. I did not find any problems with that change. |
Watermelon (developer) 2014-06-14 23:58 edited on: 2014-06-14 23:58 |
Does MSVC complain when it's warning settings are cranked up to max? (out of curiosity) |
Dusk (developer) 2015-09-05 02:22 |
This one ceased to exist when PWO was rewritten. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | No one explicitly supports this issue yet. |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2013-05-05 22:17 | Edward-san | New Issue | |
2013-05-06 23:06 | Edward-san | View Status | private => public |
2013-05-06 23:15 | Dusk | Note Added: 0006323 | |
2013-05-07 09:28 | Edward-san | Note Added: 0006324 | |
2013-06-01 18:35 | AlienOverlord | Note Added: 0006357 | |
2013-06-02 19:48 | Torr Samaho | Note Added: 0006362 | |
2013-07-26 20:07 | Edward-san | Note Added: 0006819 | |
2014-06-14 17:31 | Watermelon | Status | new => closed |
2014-06-14 17:31 | Watermelon | Resolution | open => no change required |
2014-06-14 23:09 | Dusk | Status | closed => new |
2014-06-14 23:09 | Dusk | Resolution | no change required => reopened |
2014-06-14 23:58 | Watermelon | Note Added: 0009357 | |
2014-06-14 23:58 | Watermelon | Status | new => feedback |
2014-06-14 23:58 | Watermelon | Note Edited: 0009357 | View Revisions |
2015-09-05 02:22 | Dusk | Note Added: 0013409 | |
2015-09-05 02:22 | Dusk | Status | feedback => closed |
2015-09-05 02:22 | Dusk | Resolution | reopened => no change required |
Copyright © 2000 - 2025 MantisBT Team |