Changeset 46640 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jun 18, 2013 5:37:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/mp-linux.cpp
r46639 r46640 184 184 { 185 185 RTCPUID cMax = rtMpLinuxMaxCpus(); 186 uint32_t *paidCores = (uint32_t *)alloca(sizeof( *uint32_t) * (cMax + 1));186 uint32_t *paidCores = (uint32_t *)alloca(sizeof(paidCores[0]) * (cMax + 1)); 187 187 uint32_t cCores = 0; 188 188 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++) … … 226 226 { 227 227 RTCPUID cMax = rtMpLinuxMaxCpus(); 228 uint32_t *paidCores = (uint32_t *)alloca(sizeof( *uint32_t) * (cMax + 1));228 uint32_t *paidCores = (uint32_t *)alloca(sizeof(paidCores[0]) * (cMax + 1)); 229 229 uint32_t cCores = 0; 230 230 for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++)
Note:
See TracChangeset
for help on using the changeset viewer.