projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75ad4fe
)
u_math.h: fix 64 to 32 bit truncation warning
author
Alon Levy
<alevy@redhat.com>
Tue, 22 Jul 2014 21:07:03 +0000
(
00:07
+0300)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Thu, 23 Oct 2014 13:45:40 +0000
(14:45 +0100)
Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index f95c11166e873d304b6683e881e2e6fc7dacda9a..0113fb1a0c66ec68fbdd5ae57c64d3e7848bb618 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-799,7
+799,7
@@
util_bswap64(uint64_t n)
#if defined(HAVE___BUILTIN_BSWAP64)
return __builtin_bswap64(n);
#else
- return ((uint64_t)util_bswap32(n) << 32) |
+ return ((uint64_t)util_bswap32(
(uint32_t)
n) << 32) |
util_bswap32((n >> 32));
#endif
}