Skip to content

core dependency on c_int in memcmp #32610

Closed
@bluss

Description

@bluss

libcore/str/mod.rs uses memcmp, and declares it to return i32, in reality it returns c_int, so this is a potential portability concern.

Maybe memcmp can be made an intrinsic to resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions