VirtualBox

Changeset 24661 in vbox for trunk


Ignore:
Timestamp:
Nov 14, 2009 11:37:32 PM (15 years ago)
Author:
vboxsync
Message:

review todo, not simple remark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strtonum.cpp

    r24659 r24661  
    109109 * @param   pu32        Where to store the converted number.
    110110 *
    111  * @remarks The returned value isn't really suitable for comparing two version
    112  *          strings.  Try see which result you get when converting "3.0.14" and
    113  *          "3.1.0" and comparing the values.  The way to fix this deficiency
    114  *          would be to convert the individual parts and dividing the return
    115  *          value into sections: bits 31:24 FirstNumber; 23:16 Second; 15:8
    116  *          Third; 7:0 Forth.  It would probably be a good idea to use a 64-bit
    117  *          return value instead of a 32-bit one, so there is room for revision
    118  *          number when found.
     111 * @todo    r=bird: The returned value isn't really suitable for comparing two
     112 *          version strings.  Try see which result you get when converting
     113 *          "3.0.14" and "3.1.0" and comparing the values.  The way to fix this
     114 *          deficiency would be to convert the individual parts and dividing the
     115 *          return value into sections: bits 31:24 FirstNumber; 23:16 Second;
     116 *          15:8 Third; 7:0 Forth.  It would probably be a good idea to use a
     117 *          64-bit return value instead of a 32-bit one, so there is room for
     118 *          revision number when found.
    119119 *
    120120 *          Actually, because of the above, the kind of API I had in mind was
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