Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding 3.0.4 release line to OLDNEWS.
[rsync/rsync.git]
/
hashtable.c
diff --git
a/hashtable.c
b/hashtable.c
index
d2f5948
..
1775a0b
100644
(file)
--- a/
hashtable.c
+++ b/
hashtable.c
@@
-41,7
+41,7
@@
struct hashtable *hashtable_create(int size, int key64)
tbl->size = size;
tbl->entries = 0;
tbl->node_size = node_size;
tbl->size = size;
tbl->entries = 0;
tbl->node_size = node_size;
- tbl->key64 = key64;
+ tbl->key64 =
(short)
key64;
return tbl;
}
return tbl;
}
@@
-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
if (key64)
((struct ht_int64_node*)node)->key = key;
else
- node->key = key;
+ node->key =
(int32)
key;
tbl->entries++;
return node;
}
tbl->entries++;
return node;
}