Skip to content

FCIOWriteFloat Macro casts to int, but writes sizeof(float) #4

@ssailer

Description

@ssailer

fcio/src/fcio.c

Line 111 in f3ad07d

#define FCIOWriteFloat(x,f) { float data=(int)(f); FCIOWrite(x,sizeof(float),&data); }

#define FCIOWriteFloat(x,f)     { float data=(int)(f); FCIOWrite(x,sizeof(float),&data); }

should cast to float.

At the same time FCIOWriteFloat & FCIOWriteInt prevent return code checking, and wrap FCIOWrite directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions