Commits

Ronald Oussoren committed 861e348

UniChar is typedef for unsigned short, not signed short.

  • Participants
  • Parent commits f4e922c

Comments (0)

Files changed (1)

pyobjc-core/Modules/objc/libffi_support.m

 	switch (*argtype) {
 	case _C_CHR: case _C_SHT: case _C_UNICHAR:
 		return signature_to_ffi_type(long_type);
-	case _C_UCHR: case _C_USHT: //case _C_UNICHAR:
+	case _C_UCHR: case _C_USHT: 
 		return signature_to_ffi_type(ulong_type);
 #ifdef _C_BOOL
 	case _C_BOOL: return signature_to_ffi_type(long_type);
 	case _C_NSBOOL: return &ffi_type_schar;
 	case _C_UCHR: return &ffi_type_uchar;
 	case _C_SHT: return &ffi_type_sshort;
-	case _C_UNICHAR: return &ffi_type_sshort;
+	case _C_UNICHAR: return &ffi_type_ushort;
 	case _C_USHT: return &ffi_type_ushort;
 	case _C_INT: return &ffi_type_sint;
 	case _C_UINT: return &ffi_type_uint;