Browse Source

Bugfix: swap32to?e: Ensure conditionals always have the same type

Luke Dashjr 11 years ago
parent
commit
59a7de1dc3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.h

+ 2 - 2
miner.h

@@ -720,14 +720,14 @@ static inline void swap32yes(void*out, const void*in, size_t sz) {
 // end
 
 #ifdef WORDS_BIGENDIAN
-#  define swap32tobe(out, in, sz)  ((out == in) ? (void)0 : memmove(out, in, sz))
+#  define swap32tobe(out, in, sz)  ((out == in) ? (void)0 : (void)memmove(out, in, sz))
 #  define LOCAL_swap32be(type, var, sz)  ;
 #  define swap32tole(out, in, sz)  swap32yes(out, in, sz)
 #  define LOCAL_swap32le(type, var, sz)  LOCAL_swap32(type, var, sz)
 #else
 #  define swap32tobe(out, in, sz)  swap32yes(out, in, sz)
 #  define LOCAL_swap32be(type, var, sz)  LOCAL_swap32(type, var, sz)
-#  define swap32tole(out, in, sz)  ((out == in) ? (void)0 : memmove(out, in, sz))
+#  define swap32tole(out, in, sz)  ((out == in) ? (void)0 : (void)memmove(out, in, sz))
 #  define LOCAL_swap32le(type, var, sz)  ;
 #endif