summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-08-12 14:17:00 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-08-12 14:17:16 +0200
commit726c6520aea11e8dc281b903f7253986983731d3 (patch)
treea273db2caf38a5a0f5efbea5c7226994103c50f0
parent295d05e7330da45b705aa5081d140d7c84a931b0 (diff)
downloadspice-protocol-726c6520aea11e8dc281b903f7253986983731d3.tar.gz
spice-protocol-726c6520aea11e8dc281b903f7253986983731d3.tar.xz
spice-protocol-726c6520aea11e8dc281b903f7253986983731d3.zip
Use 0xffu everywhere in new SPICE_MAGIC_CONST macro
This should have been squashed in the commit introducing the macro, but I forgot to commit this before pushing it.
-rw-r--r--spice/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/spice/macros.h b/spice/macros.h
index 679d68d..716f6e0 100644
--- a/spice/macros.h
+++ b/spice/macros.h
@@ -416,10 +416,10 @@
#if SPICE_ENDIAN == SPICE_ENDIAN_LITTLE
#define SPICE_MAGIC_CONST(s) \
- ((uint32_t)((s[0]&0xffu)|((s[1]&0xffu)<<8)|((s[2]&0xff)<<16)|((s[3]&0xffu)<<24)))
+ ((uint32_t)((s[0]&0xffu)|((s[1]&0xffu)<<8)|((s[2]&0xffu)<<16)|((s[3]&0xffu)<<24)))
#else
#define SPICE_MAGIC_CONST(s) \
- ((uint32_t)((s[3]&0xffu)|((s[2]&0xffu)<<8)|((s[1]&0xff)<<16)|((s[0]&0xffu)<<24)))
+ ((uint32_t)((s[3]&0xffu)|((s[2]&0xffu)<<8)|((s[1]&0xffu)<<16)|((s[0]&0xffu)<<24)))
#endif
#endif /* _H_SPICE_MACROS */