X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=compat%2Fbswap.h;h=f3b8c44181776a99c3eb79e15542104d67001c9d;hb=03f94ae9f909952ed5a78917ab319a312889354b;hp=279e0b48b15e091fc0ca975c3efbd461ab02c149;hpb=eb2fc8f899a58eedc87e7e8ea0fdecdc2ba9f430;p=git.git diff --git a/compat/bswap.h b/compat/bswap.h index 279e0b48b..f3b8c4418 100644 --- a/compat/bswap.h +++ b/compat/bswap.h @@ -24,7 +24,7 @@ static inline uint32_t default_swab32(uint32_t val) if (__builtin_constant_p(x)) { \ __res = default_swab32(x); \ } else { \ - __asm__("bswap %0" : "=r" (__res) : "0" (x)); \ + __asm__("bswap %0" : "=r" (__res) : "0" ((uint32_t)(x))); \ } \ __res; })