mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
crypto: fix signedness compiler warnings
This commit is contained in:
@@ -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 ;
|
||||
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(""));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user