Skip to content

Does it copy/return 4 bytes from 2 byte word ? #13

Open
@DJLinux

Description

@DJLinux
DARKSDK DWORD CastFtoW(float fValue)  {
  WORD result = (WORD)fValue;
  return *((DWORD*)&result);
}

I mean if you cast a pointer of 2 byte value to pointer of 4 byte value return *((DWORD*)&result); will read two more bytes !

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