diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-02-12 22:57:53 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-02-20 12:50:28 +0300 |
commit | d1f1fcfe0cea492152bcc8d008dc2ef59e2e0786 (patch) | |
tree | ee759f9140a3d9fe5b75f73d7fc57d86a918ff3c /src/signal_wrap.cc | |
parent | 5421e15bdc6122420d90ec462c3622b57d59c9d6 (diff) |
src: avoid implicit type conversions (take 2)
This fixes more C4244 MSVC warnings in the code base.
Refs: https://github.com/nodejs/node/pull/37149
PR-URL: https://github.com/nodejs/node/pull/37334
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/signal_wrap.cc')
-rw-r--r-- | src/signal_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 49ea849f637..cdf063c035a 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -153,7 +153,7 @@ class SignalWrap : public HandleWrap { void DecreaseSignalHandlerCount(int signum) { Mutex::ScopedLock lock(handled_signals_mutex); - int new_handler_count = --handled_signals[signum]; + int64_t new_handler_count = --handled_signals[signum]; CHECK_GE(new_handler_count, 0); if (new_handler_count == 0) handled_signals.erase(signum); |