Skip to content

Commit 2c4395e

Browse files
Fix warnings in process-list.cpp (warnings)
1 parent 408197f commit 2c4395e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mt/process-list.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ void System::readProcStat() {
141141
if (!init_) {
142142
/// The number of CPU has been detected by going through /proc/stat.
143143
vCPUData_.resize(cpuNb_ + 1);
144-
for (int i = 0; i < (int)cpuNb_; i++)
145-
vCPUData_[i].cpu_id_ = i;
144+
for (unsigned long i = 0; i < (unsigned long )cpuNb_; i++)
145+
vCPUData_[i].cpu_id_ = (int)i;
146146
}
147147
aif.close();
148148
}

0 commit comments

Comments
 (0)