VirtualBox

Changeset 3364 in kBuild


Ignore:
Timestamp:
Jun 8, 2020 7:29:42 PM (5 years ago)
Author:
bird
Message:

kDepObj: -W4 warning fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/kDepObj.c

    r3341 r3364  
    442442                    if (uLinNumType != 3 && uLinNumType != 4)
    443443                    {
    444                         static const unsigned s_acbTypes[3] = { 2+2+4, 4+4+4, 2+2+4+4+4 };
    445                         unsigned              cbEntry = s_acbTypes[uLinNumType];
     444                        static const KU16 s_acbTypes[3] = { 2+2+4, 4+4+4, 2+2+4+4+4 };
     445                        KU16              cbEntry = s_acbTypes[uLinNumType];
    446446
    447447                        while (cLinNums && cbRecLeft)
     
    504504                        while (iLinFile < cLinFiles && cbRecLeft)
    505505                        {
    506                             int cbName = *uData.pb++;
     506                            KU16 cbName = *uData.pb++;
    507507                            if (cbRecLeft < 1 + cbName)
    508508                                return kDepErr(pThis, 1, "%#07lx - Bad LINNUM32 record, file/path table entry too long.", (long)((const KU8 *)pHdr - pbFile));
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