crypto: fix signedness compiler warnings

pull/24503/head
Ben Noordhuis 2012-03-30 14:32:38 +02:00
parent b82b4f2993
commit 6986d9316c
1 changed files with 2 additions and 6 deletions

View File

@ -2853,16 +2853,12 @@ class Hmac : public ObjectWrap {
HandleScope scope;
unsigned char* md_value = NULL;
unsigned int md_len = -1;
unsigned int md_len = 0;
char* md_hexdigest;
int md_hex_len;
Local<Value> outString;
int r = hmac->HmacDigest(&md_value, &md_len);
assert(md_value != NULL);
assert(md_len != -1);
if (md_len == 0 || r == 0) {
return scope.Close(String::New(""));
}