Mercurial > hg > piper-cpp
diff json/base-n/example/basen_example.cpp @ 38:eb004c1b9579
Update base-n code from https://github.com/azawadzki/base-n
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 22 Aug 2016 17:16:11 +0100 |
parents | 6e8607ebad03 |
children |
line wrap: on
line diff
--- a/json/base-n/example/basen_example.cpp Wed May 25 14:49:44 2016 +0100 +++ b/json/base-n/example/basen_example.cpp Mon Aug 22 17:16:11 2016 +0100 @@ -70,7 +70,7 @@ return 3; } - static char encode(int index) + static char encode(unsigned int index) { const char* const dictionary = "01234567"; assert(index < strlen(dictionary));