Skip to content

Commit dd26aa5

Browse files
committed
Cast 'zfs bad bloc' to ULL for x86
Explicitly case this value to an unsigned long long for 32-bit systems to inform the compiler that a long type should not be used. Otherwise we get the following compiler error: dmu_send.c:376: error: integer constant is too large for ‘long’ type Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
1 parent a317702 commit dd26aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/dmu_send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ backup_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, arc_buf_t *pbuf,
373373
for (ptr = abuf->b_data;
374374
(char *)ptr < (char *)abuf->b_data + blksz;
375375
ptr++)
376-
*ptr = 0x2f5baddb10c;
376+
*ptr = 0x2f5baddb10cULL;
377377
} else {
378378
return (EIO);
379379
}

0 commit comments

Comments
 (0)