Anonymous | Login | 2025-02-18 09:28 CST | ![]() |
My View | View Issues |
View Revisions: Issue #158 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0000158: value -1 assigned to Size variable | ||
Revision | 2012-12-08 12:07 by Labonte | ||
Description | While cleaning Rosetta of warnings, I came to /rosetta_source/src/protocols/forge/remodel/RemodelWorkingSet.cc, line 427, where we find the following code: core::Size head = -1, tail = -1, headNew = -1, tailNew = -1; //safety, init to negative values This line itself does not throw a warning; however, it triggers several others further down, and I'm pretty sure it's not kosher to assign a negative value to an unsigned integer. Could someone who wrote or knows more about this code take care of this for me? Thanks! |
||
Revision | 2012-12-08 12:06 by Labonte | ||
Description | While cleaning Rosetta of warnings, I came to /rosetta_source/src/protocols/forge/remodel/RemodelWorkingSet.cc, line 427, where we find the following code: core::Size head = -1, tail = -1, headNew = -1, tailNew = -1; //safety, init to negative values This line itself does not throw a warning; however, it triggers several others further down, and I'm pretty sure it's not kosher to assign a negative value to an unsigned integer. Could some one who wrote or knows more about this code take care of this for me? Thanks! |
Copyright © 2000 - 2012 MantisBT Group |