Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
crypto: fix signedness compiler warnings
  • Loading branch information
bnoordhuis committed Mar 30, 2012
1 parent b82b4f2 commit 6986d93
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/node_crypto.cc
Expand Up @@ -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(""));
}
Expand Down

0 comments on commit 6986d93

Please sign in to comment.