Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

crypto: fix signedness compiler warnings

  • Loading branch information...
bnoordhuis committed Mar 30, 2012
1 parent b82b4f2 commit 6986d9316c7701277c286ddc1f1896216fd612ce
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/node_crypto.cc
@@ -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(""));
}

0 comments on commit 6986d93

Please sign in to comment.
You can’t perform that action at this time.