1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Minlib fix

This commit is contained in:
Brian Fiete 2022-01-01 09:39:35 -05:00
parent 57d8b2c9ee
commit 2daafa7b4c

View file

@ -1130,14 +1130,8 @@ namespace System.Reflection
(*(double*)&mValue).ToString(strBuffer);
case typeof (bool):
strBuffer.Append((*(bool*)&mValue) ? "true" : "false");
case typeof(char8), typeof(char16), typeof(char32):
strBuffer.Append('\'');
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):
case typeof(char8), typeof(char16), typeof(char32),
typeof(uint64), typeof(uint):
(*(uint64*)&mValue).ToString(strBuffer);
default:
mValue.ToString(strBuffer);