Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix crasher on encountering SHA1-like non-note in notes tree
[gitweb.git]
/
compat
/
bswap.h
diff --git
a/compat/bswap.h
b/compat/bswap.h
index 279e0b48b15e091fc0ca975c3efbd461ab02c149..f3b8c44181776a99c3eb79e15542104d67001c9d 100644
(file)
--- 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; })