]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Cast 'zfs bad bloc' to ULL for x86
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Feb 2013 00:35:54 +0000 (16:35 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Feb 2013 00:39:08 +0000 (16:39 -0800)
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>
module/zfs/dmu_send.c

index 0cf3c4a9ac09c5acf5b8d732ea6c701040a5a268..921c3d76f470ea0c806052cee55c41c1ab2c3e36 100644 (file)
@@ -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);
                        }