Skip to content

Fix usage of isize / usize #283

@dcampbell24

Description

@dcampbell24

I am not totally sure about whether it makes sense to be casting between C and Rust integer types, but currently isize is being used in several places to map to a c_int, which is wrong. c_int's can be as small as 16 bits and are not related to pointer size, so, as is, values can silently overflow on the Rust side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions