Skip to content

Commit

Permalink
Fixed invalid enum
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbetros committed Feb 21, 2016
1 parent 815f2f7 commit a52ea7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<Bochs_StartCosmosGDB>false</Bochs_StartCosmosGDB>
<TraceAssemblies>All</TraceAssemblies>
<Bochs_TraceAssemblies>All</Bochs_TraceAssemblies>
<StackCorruptionDetectionEnabled>False</StackCorruptionDetectionEnabled>
<Bochs_StackCorruptionDetectionEnabled>False</Bochs_StackCorruptionDetectionEnabled>
<StackCorruptionDetectionEnabled>True</StackCorruptionDetectionEnabled>
<Bochs_StackCorruptionDetectionEnabled>True</Bochs_StackCorruptionDetectionEnabled>
<VMware_StackCorruptionDetectionEnabled>False</VMware_StackCorruptionDetectionEnabled>
<VMware_TraceAssemblies>All</VMware_TraceAssemblies>
<ISO_StackCorruptionDetectionEnabled>False</ISO_StackCorruptionDetectionEnabled>
Expand All @@ -67,9 +67,9 @@
<ISO_TraceAssemblies>All</ISO_TraceAssemblies>
<ISO_EnableGDB>False</ISO_EnableGDB>
<ISO_StartCosmosGDB>false</ISO_StartCosmosGDB>
<EnableBochsDebug>False</EnableBochsDebug>
<EnableBochsDebug>True</EnableBochsDebug>
<StartBochsDebugGui>False</StartBochsDebugGui>
<Bochs_EnableBochsDebug>False</Bochs_EnableBochsDebug>
<Bochs_EnableBochsDebug>True</Bochs_EnableBochsDebug>
<Bochs_StartBochsDebugGui>False</Bochs_StartBochsDebugGui>
<ISO_EnableBochsDebug>False</ISO_EnableBochsDebug>
<ISO_StartBochsDebugGui>False</ISO_StartBochsDebugGui>
Expand Down
10 changes: 5 additions & 5 deletions source/Cosmos.Common/StringHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,25 +151,25 @@ public static int Compare(
{
if (aString1.Length < aString2.Length)
{
return (int)StringComparisonResultEnum.CSTR_LESS_THAN;
return (int)StringComparisonResultEnum.Less;
}
if (aString1.Length > aString2.Length)
{
return (int)StringComparisonResultEnum.CSTR_GREATER_THAN;
return (int)StringComparisonResultEnum.Greater;
}

for (int i = aString1.Length; i < aString1.Length; i++)
{
if (aString1[i] < aString2[i])
{
return (int)StringComparisonResultEnum.CSTR_LESS_THAN;
return (int)StringComparisonResultEnum.Equal;
}
if (aString1[i] > aString2[i])
{
return (int)StringComparisonResultEnum.CSTR_GREATER_THAN;
return (int)StringComparisonResultEnum.Greater;
}
}
return (int)StringComparisonResultEnum.CSTR_EQUAL;
return (int)StringComparisonResultEnum.Equal;
}
}
}

0 comments on commit a52ea7a

Please sign in to comment.