alexcouch
03/21/2019, 7:05 AMsvyatoslav.scherbina
03/21/2019, 7:09 AMfread 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.alexcouch
03/21/2019, 7:20 AM