commit | aa8fd16f0a36596757e2b951d1ad0dd07faccc78 | [log] [tgz] |
---|---|---|
author | Joao Pereira <joaopapereira@gmail.com> | Fri Jun 05 16:35:15 2015 -0400 |
committer | Alex Afanasyev <alexander.afanasyev@ucla.edu> | Tue Jun 09 11:19:41 2015 -0700 |
tree | a9384718d3f7fc4dbae7ed194e3d0c0da79bce54 | |
parent | 7ed294302beee4979e97ff338dee0eb3eef51142 [diff] [blame] |
name: don't restrict compare return value to {-1,0,1} refs #2445 Change-Id: I58d75f397a70564f46a12f7f45d533057e9d1f76
diff --git a/src/name.cpp b/src/name.cpp index b180ba6..c5adb7d 100644 --- a/src/name.cpp +++ b/src/name.cpp
@@ -342,7 +342,7 @@ } } // [pos1, pos1+count) of this Name equals [pos2, pos2+count) of other Name - return (count1 > count2) - (count1 < count2); // signum(count1 - count2) + return count1 - count2; } std::ostream&