Out of curiosity, how are unsigned types handled b...
# kotlin-native
i
Out of curiosity, how are unsigned types handled by Kotlin/Native? The docs just say, "All supported C types have corresponding representations in Kotlin: Signed, unsigned integral and floating point types are mapped to their Kotlin counterpart with the same width." (https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md) What happens if a native API returns an unsigned type with a value that is out of range for the corresponding signed type in Kotlin (e.g. an unsigned short with a value of 65535)?
I notice https://youtrack.jetbrains.com/issue/KT-191 was closed without explanation.
g
o
Unsigned integer is Kotlin-wide feature, and will be implemented as such
👍 3