Since ffi type aliases are mapped to different rust types depending on the architecture the lib is built for, using rust types for type casts can cause problem for certain architecture (see this issue). Such problem can be avoided by using the corresponding ffi type aliases instead. The PR replaces rust types by the corresponding ffi type aliases in certain type casts.
Since ffi type aliases are mapped to different rust types depending on the architecture the lib is built for, using rust types for type casts can cause problem for certain architecture (see this issue). Such problem can be avoided by using the corresponding ffi type aliases instead. The PR replaces rust types by the corresponding ffi type aliases in certain type casts.