mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
C#: Match Core implementation of BinToInt & HexToInt
This commit is contained in:
parent
4ce5e261b3
commit
48428bd087
1 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ namespace Godot
|
||||||
instance = instance.Substring(1);
|
instance = instance.Substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instance.StartsWith("0b"))
|
if (instance.StartsWith("0b", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
instance = instance.Substring(2);
|
instance = instance.Substring(2);
|
||||||
}
|
}
|
||||||
|
|
@ -816,7 +816,7 @@ namespace Godot
|
||||||
instance = instance.Substring(1);
|
instance = instance.Substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instance.StartsWith("0x"))
|
if (instance.StartsWith("0x", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
instance = instance.Substring(2);
|
instance = instance.Substring(2);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue