Skip to content

changing pointers #1688

@emekoi

Description

@emekoi

in my code i pass a pointer to a struct to one of it's method but the pointer's address differs from the address of the actual struct by 20. the address of the actual struct also differs from the address of the struct i return in the initializer by 4 as well. the code in question is here. running the code on windows will produce 3 different values for the address of the window. an anyone tell me why the pointers are all different?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions