I have read all over the docs and the internet in ...
# kotlin-native
a
I have read all over the docs and the internet in general for help. Nothing.
s
fread is expecting size_t but int was passed
size_t
and
Int
are different types. Kotlin doesn’t support implicit integer conversions, so you have to convert
fsize
manually. Try passing e.g.
fsize.convert()
. See http://kotlinlang.org/docs/reference/native/c_interop.html#portability for more details.
a
Wow I had completely skimmed over that. Thanks