Browse Source

Implement GetPrimitiveTypeWidth for signed/unsigned chars.

pull/778/head
Joao Matos 9 years ago
parent
commit
98858a73ee
  1. 8
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

8
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -459,6 +459,14 @@ namespace CppSharp.Generators.CSharp @@ -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;

Loading…
Cancel
Save