lint: fix code style
authorTrevor Norris <trev.norris@gmail.com>
Wed, 3 Dec 2014 01:10:40 +0000 (17:10 -0800)
committerTrevor Norris <trev.norris@gmail.com>
Wed, 3 Dec 2014 01:10:40 +0000 (17:10 -0800)
Couple code style fixes to pass cpplint

Fixes: 304c0b4 "crypto: store thread id as pointer-sized"
src/node_crypto.cc

index 1e3fc2b6b39fbe9988715e555f8e3c250a1eded2..36836c1a7906ec5215ee14e79d64891a708fa456 100644 (file)
@@ -151,8 +151,8 @@ template int SSLWrap<TLSCallbacks>::TLSExtStatusCallback(SSL* s, void* arg);
 
 
 static void crypto_threadid_cb(CRYPTO_THREADID* tid) {
-  assert(sizeof(uv_thread_t) <= sizeof(void*));
-  CRYPTO_THREADID_set_pointer(tid, (void*) uv_thread_self());
+  assert(sizeof(uv_thread_t) <= sizeof(void*));  // NOLINT(runtime/sizeof)
+  CRYPTO_THREADID_set_pointer(tid, reinterpret_cast<void*>(uv_thread_self()));
 }