Merge remote-tracking branch 'origin-pull/1/head' into HEAD

This commit is contained in:
Luke Dashjr
2015-02-28 02:21:30 +00:00

View File

@@ -52,7 +52,7 @@ bool b58tobin(void *bin, size_t *binszp, const char *b58, size_t b58sz)
memset(outi, 0, outisz * sizeof(*outi)); memset(outi, 0, outisz * sizeof(*outi));
// Leading zeros, just count // Leading zeros, just count
for (i = 0; i < b58sz && !b58digits_map[b58u[i]]; ++i) for (i = 0; i < b58sz && b58u[i] == '1'; ++i)
++zerocount; ++zerocount;
for ( ; i < b58sz; ++i) for ( ; i < b58sz; ++i)