Migrate to Meta backend #46
@ -11,7 +11,7 @@ extension Int: Identifiable {
|
|||||||
public var id: Int { self }
|
public var id: Int { self }
|
||||||
/// The C integer.
|
/// The C integer.
|
||||||
public var cInt: Int32 {
|
public var cInt: Int32 {
|
||||||
.init(self)
|
.init(truncatingIfNeeded: self)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@ extension UInt {
|
|||||||
|
|
||||||
/// Convert an unsigned integer into the C form.
|
/// Convert an unsigned integer into the C form.
|
||||||
public var cInt: UInt32 {
|
public var cInt: UInt32 {
|
||||||
.init(self)
|
.init(truncatingIfNeeded: self)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user