]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zap.c
Fix gcc cast warnings
[mirror_zfs.git] / module / zfs / zap.c
index 288a4d99ab2576ba22f6bb52ef8451c9f5f19bec..89446a4fbdfc2e1e8dcc28e6702bc924f637f31b 100644 (file)
@@ -483,7 +483,7 @@ zap_open_leaf(uint64_t blkid, dmu_buf_t *db)
        ASSERT3U(ZAP_LEAF_HASH_NUMENTRIES(l), >, ZAP_LEAF_NUMCHUNKS(l) / 3);
 
        /* The chunks should begin at the end of the hash table */
-       ASSERT3P(&ZAP_LEAF_CHUNK(l, 0), ==,
+       ASSERT3P(&ZAP_LEAF_CHUNK(l, 0), ==, (zap_leaf_chunk_t *)
            &l->l_phys->l_hash[ZAP_LEAF_HASH_NUMENTRIES(l)]);
 
        /* The chunks should end at the end of the block */