Skip to content

Why the uint8_t* to uint16_t* conversion in register_convert()? #6

@JMLX42

Description

@JMLX42

Hi,

thank you for your work.
I have a question though: could you please explain the uint8_t* to uint16_t* cast happening here ?

If depth is stored as an uint8_t, reading and writing it as an uint16_t won't have the expected outcome.
What am I missing?

Thanks,

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