Skip to content

Commit 107ca53

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.
1 parent 211e40e commit 107ca53

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)