fix(core): Updates slice with range selectors (#583)
- [X] Replaces Span slicing with range selection - [X] Replaces string slicing with range selection
This commit is contained in:
parent
9f9d990f85
commit
a0893b68c0
62 changed files with 363 additions and 382 deletions
|
|
@ -289,15 +289,15 @@ namespace Server.Commands
|
|||
{
|
||||
if (IsSignedNumeric(type))
|
||||
{
|
||||
obj = Convert.ToInt64(value.Substring(2), 16);
|
||||
obj = Convert.ToInt64(value[2..], 16);
|
||||
}
|
||||
else if (IsUnsignedNumeric(type))
|
||||
{
|
||||
obj = Convert.ToUInt64(value.Substring(2), 16);
|
||||
obj = Convert.ToUInt64(value[2..], 16);
|
||||
}
|
||||
else
|
||||
{
|
||||
obj = Convert.ToInt32(value.Substring(2), 16);
|
||||
obj = Convert.ToInt32(value[2..], 16);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue