fix compiler error on 32bit arches

This commit is contained in:
Matt 2015-11-19 16:24:29 -07:00
parent cd875f4ab9
commit 7bc27a521e

View File

@ -185,7 +185,7 @@ void Url::set ( char *t , int32_t tlen , bool addWWW , bool stripSessionId ,
log(LOG_DEBUG, "build: attempting to decode unicode url %s pos at %"INT32, t, nonAsciiPos);
if(tmp) t[tlen] = tmp;
char encoded [ MAX_URL_LEN ];
uint64_t encodedLen = MAX_URL_LEN;
size_t encodedLen = MAX_URL_LEN;
char *encodedDomStart = encoded;
char *p = t;
char *pend = t+tlen;
@ -2602,7 +2602,7 @@ char* Url::getDisplayUrl(char* url, SafeBuf* sb) {
char* encodedStart = found + 4;
uint32_t decoded [ MAX_URL_LEN];
uint64_t decodedLen = MAX_URL_LEN - 1 ;
size_t decodedLen = MAX_URL_LEN - 1 ;
char* labelEnd = encodedStart;
while( labelEnd < domEnd && *labelEnd != '/' && *labelEnd != '.' )
labelEnd++;