-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
int64 parse error #33
Comments
well.. not sure.. comments there explain it's necessary to do the last conversion. Did you run into an error or failed conversion? pls provide more details. |
declare |
I see... will fix it in next patch, |
For anyone having same issues : this can be solved by additional NumberLiteral setup, example can be found here : |
in "Irony\Parsing\Terminals\NumberLiteral.cs" 275 row
case TypeCode.Int32: case TypeCode.UInt32: case TypeCode.Int64: case TypeCode.UInt64: if (details.Value == null) //if it is not done yet TryConvertToLong(details, typeCode == TypeCode.UInt64); //try to convert to Long/Ulong and place the result into details.Value field; if(TryCastToIntegerType(typeCode, details)) //now try to cast the ULong value to the target type return true; break;
Proposed changes to :
case TypeCode.Int32: case TypeCode.UInt32: case TypeCode.Int64: case TypeCode.UInt64: if (details.Value == null) //if it is not done yet if (TryConvertToLong(details, typeCode == TypeCode.UInt64)) //try to convert to Long/Ulong and place the result into details.Value field; return true; if(TryCastToIntegerType(typeCode, details)) //now try to cast the ULong value to the target type return true; break;
The text was updated successfully, but these errors were encountered: