We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b5be5 commit c9c4ddcCopy full SHA for c9c4ddc
1 file changed
src/PatchManager.SassyPatching/DataValue.cs
@@ -1281,11 +1281,11 @@ public DataValue this[DataValue rightHandSide]
1281
{
1282
try
1283
1284
- return (double)String[(int)rightHandSide.Integer];
+ return (int)String[(int)rightHandSide.Integer];
1285
}
1286
catch
1287
1288
- throw new IndexOutOfRangeException(((int)rightHandSide.Real) + " is out of range of the string being indexed");
+ throw new IndexOutOfRangeException(rightHandSide.Integer + " is out of range of the string being indexed");
1289
1290
1291
0 commit comments