projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
272ffde
)
Fix for decrement
author
<brian@gir.tangent.org>
<>
Sun, 4 Jan 2009 22:16:43 +0000
(14:16 -0800)
committer
<brian@gir.tangent.org>
<>
Sun, 4 Jan 2009 22:16:43 +0000
(14:16 -0800)
ChangeLog
patch
|
blob
|
history
libmemcached/memcached_hash.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 1f58b4fbcfd3a1d7200b832f7ab6e370fa32aa83..c61a7a2cd477a5e3f8c4f4ab2817d488a1d97466 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,6
@@
+0.26
+ * Fix for decrement on hash key
+
0.25 Fri Nov 28 09:59:35 PST 2008
* Jenkins HASH added.
* Update of Murmur hash code
diff --git
a/libmemcached/memcached_hash.c
b/libmemcached/memcached_hash.c
index 29c8d04850a2d7d3d2b8e69a83153ebd62bce116..de0ce1dcab98ceecf4e4d8a23832353fc7e3ea6e 100644
(file)
--- a/
libmemcached/memcached_hash.c
+++ b/
libmemcached/memcached_hash.c
@@
-186,7
+186,7
@@
static uint32_t internal_generate_hash(const char *key, size_t key_length)
const char *ptr= key;
uint32_t value= 0;
- while (
--key_length
)
+ while (
key_length--
)
{
value += *ptr++;
value += (value << 10);