VirtualBox

Changeset 107858 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jan 20, 2025 3:55:13 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167058
Message:

Warning fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r107856 r107858  
    14411441    if (s->cTotalSectors <= (1 << 28) - 1)
    14421442    {
    1443         p[60] = RT_H2LE_U16(RT_LO_U16(s->cTotalSectors));
    1444         p[61] = RT_H2LE_U16(RT_HI_U16(s->cTotalSectors));
     1443        p[60] = RT_H2LE_U16(RT_LO_U16(RT_LO_U32(s->cTotalSectors)));
     1444        p[61] = RT_H2LE_U16(RT_HI_U16(RT_LO_U32(s->cTotalSectors)));
    14451445    }
    14461446    else
Note: See TracChangeset for help on using the changeset viewer.

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