VirtualBox

Changeset 3544 in kBuild


Ignore:
Timestamp:
Jan 29, 2022 2:22:03 AM (3 years ago)
Author:
bird
Message:

kmk/expreval: Corrected expr_map_get cast. Corrected base determination in expr_string_to_num.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expreval.c

    r3400 r3544  
    319319
    320320    /*
    321      * Determin base                                                        .
    322      *                                                                      .
     321     * Determin base.
     322     *
    323323     * Recognize some exsotic prefixes here in addition to the two standard ones.
    324324     */
    325     if (*psz != '0' || psz[1] == '\0' || ISBLANK(psz[1]))
     325    if (*psz != '0')
    326326        uBase = 10;
    327327    else if (psz[1] == 'x' || psz[1] == 'X')
     
    19071907static unsigned char expr_map_get(char ch)
    19081908{
    1909     return g_auchOpStartCharMap[(unsigned int)ch];
     1909    return g_auchOpStartCharMap[(unsigned char)ch];
    19101910}
    19111911
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