VirtualBox

Ignore:
Timestamp:
Jul 11, 2020 4:26:34 PM (5 years ago)
Author:
vboxsync
Message:

NetworkServices/DhcpOptions: Signed warning fixes. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/DhcpOptions.h

    r82968 r85231  
    447447
    448448        append(dst, m_String);
    449         return m_String.length();
     449        return (ssize_t)m_String.length();
    450450    }
    451451
     
    551551        }
    552552
    553         return cbValue;
     553        return (ssize_t)cbValue;
    554554    }
    555555
     
    706706    {
    707707        dst.insert(dst.end(), m_Data.begin(), m_Data.end());
    708         return m_Data.size();
     708        return (ssize_t)m_Data.size();
    709709    }
    710710
     
    712712    {
    713713        octets_t::const_iterator beg(src.begin());
    714         octets_t data(beg, beg + cb);
     714        octets_t data(beg, beg + (ssize_t)cb);
    715715        m_Data.swap(data);
    716716
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