Skip to content

c_import: a static inline bool function whose tail is a call returning bool (SDL_Unsupported → SDL_SetError) fails "return type mismatch" #1879

Closed

Description

@ehartford

Found verifying #1872 (both platforms). SDL_FORCE_INLINE bool SDL_Unsupported(void) { return SDL_SetError("That operation is not supported"); } — SDL_SetError is variadic, returning bool; the translated tail call's type does not match the declared bool return. Likely the variadic call's result type under #1849/#1832's promotion rules or the C bool ↔ With bool mapping at a tail. Expected: the function translates and returns the call's value.

Activity

  1. added
    bug
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions