Fix compiler warning.
This commit is contained in:
parent
5d4336e542
commit
810847248a
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ int bin2hex(const char *src, char *dst, int length) {
|
||||||
int b64decode(const char *src, char *dst, int length) {
|
int b64decode(const char *src, char *dst, int length) {
|
||||||
int i;
|
int i;
|
||||||
uint32_t triplet = 0;
|
uint32_t triplet = 0;
|
||||||
unsigned char *udst = dst;
|
unsigned char *udst = (unsigned char *)dst;
|
||||||
|
|
||||||
for(i = 0; i < length / 3 * 4 && src[i]; i++) {
|
for(i = 0; i < length / 3 * 4 && src[i]; i++) {
|
||||||
triplet |= charb64decode(src[i]) << (6 * (i & 3));
|
triplet |= charb64decode(src[i]) << (6 * (i & 3));
|
||||||
|
@ -92,7 +92,7 @@ int b64decode(const char *src, char *dst, int length) {
|
||||||
|
|
||||||
int b64encode(const char *src, char *dst, int length) {
|
int b64encode(const char *src, char *dst, int length) {
|
||||||
uint32_t triplet;
|
uint32_t triplet;
|
||||||
const unsigned char *usrc = src;
|
const unsigned char *usrc = (unsigned char *)src;
|
||||||
int si = length / 3 * 3;
|
int si = length / 3 * 3;
|
||||||
int di = length / 3 * 4;
|
int di = length / 3 * 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue