Browse Source

endian: use TinyCC-compatible output operands for SDL_Swap16.

Closes #14300.
Ryan C. Gordon 1 month ago
parent
commit
7bff05402a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/SDL3/SDL_endian.h

+ 1 - 1
include/SDL3/SDL_endian.h

@@ -252,7 +252,7 @@ SDL_FORCE_INLINE Uint16 SDL_Swap16(Uint16 x)
 #elif defined(__x86_64__)
 SDL_FORCE_INLINE Uint16 SDL_Swap16(Uint16 x)
 {
-  __asm__("xchgb %b0,%h0": "=Q"(x):"0"(x));
+  __asm__("xchgb %b0,%h0": "=abcd"(x):"0"(x));
     return x;
 }
 #elif (defined(__powerpc__) || defined(__ppc__))