Skip to content

sizeof(oVel) returns the size of a pointer #3

@ghost

Description

https://github.com/jwatte/EPIC/blob/master/Extrapolator.cpp#L126

oVel is an argument and passed as pointer to ReadPosition(), so sizeof(oVel) returns the size of a pointer.

Fix

Replace sizeof(oVel) with sizeof(Type) * Count

memset(oVel, 0, sizeof(Type) * Count);

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