mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
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>
This commit is contained in:
parent
a31770283a
commit
dd26aa535b
@ -373,7 +373,7 @@ backup_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, arc_buf_t *pbuf,
|
|||||||
for (ptr = abuf->b_data;
|
for (ptr = abuf->b_data;
|
||||||
(char *)ptr < (char *)abuf->b_data + blksz;
|
(char *)ptr < (char *)abuf->b_data + blksz;
|
||||||
ptr++)
|
ptr++)
|
||||||
*ptr = 0x2f5baddb10c;
|
*ptr = 0x2f5baddb10cULL;
|
||||||
} else {
|
} else {
|
||||||
return (EIO);
|
return (EIO);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user