Browse Source

Bugfix: Explicitly cast uses of be32toh to uint32_t

Conflicts:
	miner.c
Luke Dashjr 12 years ago
parent
commit
e4d9fa18be
2 changed files with 2 additions and 2 deletions
  1. 1 1
      driver-cairnsmore.c
  2. 1 1
      miner.c

+ 1 - 1
driver-cairnsmore.c

@@ -102,7 +102,7 @@ bool cairnsmore_supports_dynclock(int fd)
 			// Hashed the command, so it's not supported
 			return false;
 		default:
-			applog(LOG_WARNING, "Unexpected nonce from dynclock probe: %08x", be32toh(nonce));
+			applog(LOG_WARNING, "Unexpected nonce from dynclock probe: %08x", (uint32_t)be32toh(nonce));
 			return false;
 		case 0:
 			return true;

+ 1 - 1
miner.c

@@ -1835,7 +1835,7 @@ void have_block_height(uint32_t block_id, uint32_t blkheight)
 {
 	if (known_blkheight == blkheight)
 		return;
-	applog(LOG_DEBUG, "Learned that block id %08" PRIx32 " is height %" PRIu32, be32toh(block_id), blkheight);
+	applog(LOG_DEBUG, "Learned that block id %08" PRIx32 " is height %" PRIu32, (uint32_t)be32toh(block_id), blkheight);
 	mutex_lock(&ch_lock);
 	known_blkheight = blkheight;
 	known_blkheight_blkid = block_id;