summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-04-09 16:17:34 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2013-04-10 23:51:17 +0200
commitf83afd3c74865182bce62843fe23d28b4f876638 (patch)
tree86e5f765bccbaf72411d1ee87c239781d782e7cc
parent8428b52e25fca440aa54a017a0b446f21f27c79a (diff)
downloadnode-new-f83afd3c74865182bce62843fe23d28b4f876638.tar.gz
src: get rid of compiler warning
Removed the following compiler warning from clang: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index dae39270bb..862221e5c3 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -2377,7 +2377,7 @@ Handle<Object> SetupProcessObject(int argc, char *argv[]) {
}
}
versions->Set(String::NewSymbol("openssl"),
- String::New(OPENSSL_VERSION_TEXT + i, j - i));
+ String::New(&OPENSSL_VERSION_TEXT[i], j - i));
#endif