diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-10-25 21:23:54 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-28 11:55:01 +0300 |
commit | b0089a580fcf3605d46498db65a770c63875e2f8 (patch) | |
tree | 06cfe23066ee6e6d248ded71a0fe252b7aaac3c4 /src/node_os.cc | |
parent | 1ba10db160fc432f618430835335c321f65bd27d (diff) |
src: make model counter in `GetCPUInfo()` unsigned
This fixes a compiler warning about comparing against
the (unsigned) `NODE_PUSH_VAL_TO_ARRAY_MAX` constant.
PR-URL: https://github.com/nodejs/node/pull/23880
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Diffstat (limited to 'src/node_os.cc')
-rw-r--r-- | src/node_os.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index d3e9460f473..6e209b2ceec 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -168,7 +168,7 @@ static void GetCPUInfo(const FunctionCallbackInfo<Value>& args) { Local<Array> cpus = args[2].As<Array>(); Local<Value> model_argv[NODE_PUSH_VAL_TO_ARRAY_MAX]; - int model_idx = 0; + unsigned int model_idx = 0; for (i = 0, field_idx = 0; i < count; i++) { uv_cpu_info_t* ci = cpu_infos + i; |