VirtualBox

Changeset 77760 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 18, 2019 1:28:13 PM (6 years ago)
Author:
vboxsync
Message:

Runtime/asn1-ut-integer.cpp: No bit set means both are zero and therefore equal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-integer.cpp

    r76553 r77760  
    222222                if (iLeft != iRight)
    223223                    return iLeft < iRight ? -1 : 1;
     224                if ((int32_t)iLeft < 0)
     225                    return 0; /* Both are all zeros. */
    224226
    225227                uint32_t i = iLeft / 8;
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