From: Brian Behlendorf Date: Tue, 5 Feb 2013 00:35:54 +0000 (-0800) Subject: Cast 'zfs bad bloc' to ULL for x86 X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=dd26aa535b395735ca61ea2a3e618aded45eb05e;p=zfs.git 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 --- diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index 0cf3c4a..921c3d7 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -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; (char *)ptr < (char *)abuf->b_data + blksz; ptr++) - *ptr = 0x2f5baddb10c; + *ptr = 0x2f5baddb10cULL; } else { return (EIO); }