mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Minlib fix
This commit is contained in:
parent
57d8b2c9ee
commit
2daafa7b4c
1 changed files with 2 additions and 8 deletions
|
@ -1130,14 +1130,8 @@ namespace System.Reflection
|
||||||
(*(double*)&mValue).ToString(strBuffer);
|
(*(double*)&mValue).ToString(strBuffer);
|
||||||
case typeof (bool):
|
case typeof (bool):
|
||||||
strBuffer.Append((*(bool*)&mValue) ? "true" : "false");
|
strBuffer.Append((*(bool*)&mValue) ? "true" : "false");
|
||||||
case typeof(char8), typeof(char16), typeof(char32):
|
case typeof(char8), typeof(char16), typeof(char32),
|
||||||
strBuffer.Append('\'');
|
typeof(uint64), typeof(uint):
|
||||||
var str = (*(char32*)&mValue).ToString(.. scope .());
|
|
||||||
let len = str.Length;
|
|
||||||
String.QuoteString(&str[0], len, str);
|
|
||||||
strBuffer.Append(str[(len + 1)...^2]);
|
|
||||||
strBuffer.Append('\'');
|
|
||||||
case typeof(uint64), typeof(uint):
|
|
||||||
(*(uint64*)&mValue).ToString(strBuffer);
|
(*(uint64*)&mValue).ToString(strBuffer);
|
||||||
default:
|
default:
|
||||||
mValue.ToString(strBuffer);
|
mValue.ToString(strBuffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue