Skip to content

Commit 3f88b97

Browse files
authored
Fix parsing Hex and Binary (#956)
* Fix parsing Hex and Binary * fix
1 parent 3aa76d9 commit 3f88b97

File tree

4 files changed

+235
-208
lines changed

4 files changed

+235
-208
lines changed

src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,11 +984,12 @@ private Expression ParseRealLiteral()
984984
{
985985
_textParser.ValidateToken(TokenId.RealLiteral);
986986

987-
string text = _textParser.CurrentToken.Text;
987+
var text = _textParser.CurrentToken.Text;
988+
var textOriginal = text;
988989

989990
_textParser.NextToken();
990991

991-
return _numberParser.ParseRealLiteral(text, text[text.Length - 1], true);
992+
return _numberParser.ParseRealLiteral(text, textOriginal, text[text.Length - 1], true);
992993
}
993994

994995
private Expression ParseParenExpression()

0 commit comments

Comments
 (0)