diff --git a/BeefLibs/corlib/src/Type.bf b/BeefLibs/corlib/src/Type.bf index 731752d2..bf698466 100644 --- a/BeefLibs/corlib/src/Type.bf +++ b/BeefLibs/corlib/src/Type.bf @@ -1126,6 +1126,12 @@ namespace System.Reflection (*(float*)&mValue).ToString(strBuffer); case typeof(double): (*(double*)&mValue).ToString(strBuffer); + case typeof (bool): + strBuffer.Append((*(bool*)&mValue) ? "true" : "false"); + case typeof(char8), typeof(char16), typeof(char32): + strBuffer.Append('\''); + (*(char32*)&mValue).ToString(strBuffer); + strBuffer.Append('\''); case typeof(uint64), typeof(uint): (*(uint64*)&mValue).ToString(strBuffer); default: diff --git a/IDE/mintest/minlib/src/System/Type.bf b/IDE/mintest/minlib/src/System/Type.bf index 731752d2..bf698466 100644 --- a/IDE/mintest/minlib/src/System/Type.bf +++ b/IDE/mintest/minlib/src/System/Type.bf @@ -1126,6 +1126,12 @@ namespace System.Reflection (*(float*)&mValue).ToString(strBuffer); case typeof(double): (*(double*)&mValue).ToString(strBuffer); + case typeof (bool): + strBuffer.Append((*(bool*)&mValue) ? "true" : "false"); + case typeof(char8), typeof(char16), typeof(char32): + strBuffer.Append('\''); + (*(char32*)&mValue).ToString(strBuffer); + strBuffer.Append('\''); case typeof(uint64), typeof(uint): (*(uint64*)&mValue).ToString(strBuffer); default: