diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-10-25 20:23:54 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-28 09:55:01 +0100 |
commit | b0089a580fcf3605d46498db65a770c63875e2f8 (patch) | |
tree | 06cfe23066ee6e6d248ded71a0fe252b7aaac3c4 /src | |
parent | 1ba10db160fc432f618430835335c321f65bd27d (diff) | |
download | android-node-v8-b0089a580fcf3605d46498db65a770c63875e2f8.tar.gz android-node-v8-b0089a580fcf3605d46498db65a770c63875e2f8.tar.bz2 android-node-v8-b0089a580fcf3605d46498db65a770c63875e2f8.zip |
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')
-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 d3e9460f47..6e209b2cee 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; |