Skip to content

Commit c9c4ddc

Browse files
committed
What was I thinking?
1 parent c4b5be5 commit c9c4ddc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PatchManager.SassyPatching/DataValue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,11 +1281,11 @@ public DataValue this[DataValue rightHandSide]
12811281
{
12821282
try
12831283
{
1284-
return (double)String[(int)rightHandSide.Integer];
1284+
return (int)String[(int)rightHandSide.Integer];
12851285
}
12861286
catch
12871287
{
1288-
throw new IndexOutOfRangeException(((int)rightHandSide.Real) + " is out of range of the string being indexed");
1288+
throw new IndexOutOfRangeException(rightHandSide.Integer + " is out of range of the string being indexed");
12891289
}
12901290
}
12911291

0 commit comments

Comments
 (0)