Skip to content

Commit b0089a5

Browse files
committed
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: #23880 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Matheus Marchini <[email protected]>
1 parent 1ba10db commit b0089a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_os.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static void GetCPUInfo(const FunctionCallbackInfo<Value>& args) {
168168
Local<Array> cpus = args[2].As<Array>();
169169

170170
Local<Value> model_argv[NODE_PUSH_VAL_TO_ARRAY_MAX];
171-
int model_idx = 0;
171+
unsigned int model_idx = 0;
172172

173173
for (i = 0, field_idx = 0; i < count; i++) {
174174
uv_cpu_info_t* ci = cpu_infos + i;

0 commit comments

Comments
 (0)