]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Explicitly cast an int64 to an int32.
authorWayne Davison <wayned@samba.org>
Tue, 22 Jul 2008 06:11:23 +0000 (23:11 -0700)
committerWayne Davison <wayned@samba.org>
Tue, 22 Jul 2008 06:11:23 +0000 (23:11 -0700)
hashtable.c

index 7da907c669397d012f332df62c9bc2e09882bbaa..1775a0be1c3e9d669dee0ac70247344b9dac35f4 100644 (file)
@@ -142,7 +142,7 @@ void *hashtable_find(struct hashtable *tbl, int64 key, int allocate_if_missing)
        if (key64)
                ((struct ht_int64_node*)node)->key = key;
        else
-               node->key = key;
+               node->key = (int32)key;
        tbl->entries++;
        return node;
 }