Fix gint64/guint64 marshalling for macOS glib builds
This commit is contained in:
parent
298e5a4b43
commit
5866ed57e9
3 changed files with 40 additions and 4 deletions
|
|
@ -146,7 +146,7 @@ struct TypeMapperTests {
|
|||
PrimitiveCase(type: .int8, swiftType: "Int8", cSwiftType: "Int8", gvalueTypeMacro: nil, gvalueGetter: nil),
|
||||
PrimitiveCase(type: .int16, swiftType: "Int16", cSwiftType: "Int16", gvalueTypeMacro: nil, gvalueGetter: nil),
|
||||
PrimitiveCase(type: .int32, swiftType: "Int32", cSwiftType: "Int32", gvalueTypeMacro: "G_TYPE_INT", gvalueGetter: "int"),
|
||||
PrimitiveCase(type: .int64, swiftType: "Int", cSwiftType: "Int", gvalueTypeMacro: "G_TYPE_INT64", gvalueGetter: "int64",
|
||||
PrimitiveCase(type: .int64, swiftType: "Int", cSwiftType: "gint64", gvalueTypeMacro: "G_TYPE_INT64", gvalueGetter: "int64",
|
||||
marshalIn: .numericCast(targetType: "Int"), marshalOut: .numericCast(fromType: "Int")),
|
||||
])
|
||||
func signedIntegers(_ tc: PrimitiveCase) throws {
|
||||
|
|
@ -167,7 +167,7 @@ struct TypeMapperTests {
|
|||
PrimitiveCase(type: .uint8, swiftType: "UInt8", cSwiftType: "UInt8", gvalueTypeMacro: nil, gvalueGetter: nil),
|
||||
PrimitiveCase(type: .uint16, swiftType: "UInt16", cSwiftType: "UInt16", gvalueTypeMacro: nil, gvalueGetter: nil),
|
||||
PrimitiveCase(type: .uint32, swiftType: "UInt32", cSwiftType: "UInt32", gvalueTypeMacro: "G_TYPE_UINT", gvalueGetter: "uint"),
|
||||
PrimitiveCase(type: .uint64, swiftType: "UInt", cSwiftType: "UInt", gvalueTypeMacro: "G_TYPE_UINT64", gvalueGetter: "uint64",
|
||||
PrimitiveCase(type: .uint64, swiftType: "UInt", cSwiftType: "guint64", gvalueTypeMacro: "G_TYPE_UINT64", gvalueGetter: "uint64",
|
||||
marshalIn: .numericCast(targetType: "UInt"), marshalOut: .numericCast(fromType: "UInt")),
|
||||
])
|
||||
func unsignedIntegers(_ tc: PrimitiveCase) throws {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue