Skip to content

SDL2.pas: SDL_AUDIO_ISLITTLEENDIAN stack overflow #138

Closed
@Chixpy

Description

@Chixpy

Hello. I found another little mistake.

function SDL_AUDIO_ISLITTLEENDIAN(x: Cardinal): Cardinal;
begin
Result := not SDL_AUDIO_ISLITTLEENDIAN(x);
end;

It's calling itself recursively, when clearly we want to call SDL_AUDIO_ISBIGENDIAN

function SDL_AUDIO_ISLITTLEENDIAN(x: Cardinal): Cardinal;
begin
  Result := not SDL_AUDIO_ISBIGENDIAN(x);
end;

Can I make a fast PR to fix it?

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