Skip to content

Types table is incorrect #2

Open
@jplatte

Description

@jplatte

Equating char to i8 is wrong in two ways: Its signedness as well as its size are unspecified in the C and C++ standards.

According to an answer on Stack Overflow there are even real platforms out there with 16 or 32 bit chars. But AFAIK, for all the platforms Rust supports, you can at assume chars to be 8 bits in size, and thus signed char == i8, unsigned char == u8.

cppreference.com documentation about the char type (and other primitive types): C, C++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions