summaryrefslogtreecommitdiff
path: root/src/node_crypto.cc
diff options
context:
space:
mode:
authorRasmus Christian Pedersen <zerhacken@yahoo.com>2014-04-28 14:45:20 +0200
committerFedor Indutny <fedor@indutny.com>2014-04-29 14:13:28 +0400
commitd13e0297c362c99062ba61d9569248938b2bb72a (patch)
tree6eb66ed531eb278cf8ebedf634655d3148f8b30f /src/node_crypto.cc
parent226f98a356fb62a706bc860c36c9ebc6124d776e (diff)
downloadnode-new-d13e0297c362c99062ba61d9569248938b2bb72a.tar.gz
crypto: fix a couple of VC++ warnings
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r--src/node_crypto.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 20ad96ae87..d81e24bd73 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -761,7 +761,7 @@ void SecureContext::SetOptions(const FunctionCallbackInfo<Value>& args) {
return sc->env()->ThrowTypeError("Bad parameter");
}
- SSL_CTX_set_options(sc->ctx_, args[0]->IntegerValue());
+ SSL_CTX_set_options(sc->ctx_, static_cast<long>(args[0]->IntegerValue()));
}
@@ -4516,7 +4516,7 @@ void Certificate::VerifySpkac(const FunctionCallbackInfo<Value>& args) {
char* data = Buffer::Data(args[0]);
assert(data != NULL);
- i = certificate->VerifySpkac(data, length) > 0;
+ i = certificate->VerifySpkac(data, length);
args.GetReturnValue().Set(i);
}