VirtualBox

Changeset 46640 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 18, 2013 5:37:03 PM (12 years ago)
Author:
vboxsync
Message:

typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/mp-linux.cpp

    r46639 r46640  
    184184{
    185185    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));
    187187    uint32_t    cCores    = 0;
    188188    for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++)
     
    226226{
    227227    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));
    229229    uint32_t    cCores    = 0;
    230230    for (RTCPUID idCpu = 0; idCpu < cMax; idCpu++)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette