Browse Source

Merge branch 'bugfix_64endian' into stratum

Conflicts:
	miner.h
Luke Dashjr 13 years ago
parent
commit
3680a7b60b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.h

+ 1 - 1
miner.h

@@ -157,7 +157,7 @@ static inline int fsync (int fd)
 # if __BYTE_ORDER == __LITTLE_ENDIAN
 #  define be32toh(x) bswap_32(x)
 #  define htobe32(x) bswap_32(x)
-#  define htobe64(x) bswap_32(x)
+#  define htobe64(x) bswap_64(x)
 #  define le32toh(x) (x)
 #  define htole32(x) (x)
 # elif __BYTE_ORDER == __BIG_ENDIAN