VirtualBox

Ignore:
Timestamp:
Aug 12, 2022 10:13:29 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152965
Message:

IPRT/nocrt: strtod, a makefile correction, and ERANGE errno mapping. bugref:10261

Location:
trunk/src/VBox/Runtime/common/err
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp

    r93115 r96159  
    154154#endif
    155155#ifdef ERANGE
    156         case ERANGE:            return VERR_INVALID_PARAMETER;  /** @todo fix duplicate error */
     156        case ERANGE:            return VERR_OUT_OF_RANGE;
    157157#endif
    158158#ifdef EDEADLK
  • trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp

    r93115 r96159  
    156156#endif
    157157#ifdef ERANGE
    158         //case VERR_INVALID_PARAMETER:    return ERANGE;
     158        case VERR_OUT_OF_RANGE:                     return ERANGE;
     159        case VERR_FLOAT_UNDERFLOW:                  return ERANGE;
     160        case VWRN_FLOAT_UNDERFLOW:                  return ERANGE;
     161        case VERR_FLOAT_OVERFLOW:                   return ERANGE;
     162        case VWRN_FLOAT_OVERFLOW:                   return ERANGE;
    159163#endif
    160164#ifdef EDEADLK
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