projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b51cb
)
Fix unhex
author
Howard Chu
<hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000
(08:56 -0700)
committer
Howard Chu
<hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000
(08:56 -0700)
libraries/liblmdb/mdb_load.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb_load.c
b/libraries/liblmdb/mdb_load.c
index
27ffc28
..
967b0ff
100644
(file)
--- a/
libraries/liblmdb/mdb_load.c
+++ b/
libraries/liblmdb/mdb_load.c
@@
-128,11
+128,11
@@
static int unhex(unsigned char *c2)
int x, c;
x = *c2++ & 0x4f;
if (x & 0x40)
- x -= 5
4
;
+ x -= 5
5
;
c = x << 4;
x = *c2 & 0x4f;
if (x & 0x40)
- x -= 5
4
;
+ x -= 5
5
;
c |= x;
return c;
}