diff --git a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs index 0d473a24..084ac3c4 100644 --- a/src/Generator/Generators/CSharp/CSharpTypePrinter.cs +++ b/src/Generator/Generators/CSharp/CSharpTypePrinter.cs @@ -459,6 +459,14 @@ namespace CppSharp.Generators.CSharp { switch (primitive) { + case PrimitiveType.Char: + width = targetInfo?.CharWidth ?? 8; + signed = true; + break; + case PrimitiveType.UChar: + width = targetInfo?.CharWidth ?? 8; + signed = false; + break; case PrimitiveType.Short: width = targetInfo?.ShortWidth ?? 16; signed = true;