Changeset 61bbacea in rtems


Ignore:
Timestamp:
Feb 1, 2011, 5:41:07 AM (8 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
a38457a
Parents:
5df16fab
Message:

2011-02-01 Ralf Corsepius <ralf.corsepius@…>

  • libmisc/stringto/stringtodouble.c: Reformat range check. Add check for result = -HUGE_VAL.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5df16fab r61bbacea  
    112011-02-01      Ralf Corsepius <ralf.corsepius@rtems.org>
    22
     3        * libmisc/stringto/stringtodouble.c: Reformat range check.
     4        Add check for result = -HUGE_VAL.
    35        * libmisc/stringto/stringtolonglong.c: Reformat range check.
    46        c99 portability improvements. Add check for result==0.
  • cpukit/libmisc/stringto/stringtodouble.c

    r5df16fab r61bbacea  
    4949    return RTEMS_NOT_DEFINED;
    5050
    51   if ( (result == HUGE_VAL) && (errno == ERANGE))
    52       return RTEMS_INVALID_NUMBER;
    53   if ( (result == 0) && (errno == ERANGE))
     51  if ( ( errno == ERANGE ) &&
     52    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
    5453      return RTEMS_INVALID_NUMBER;
    5554
Note: See TracChangeset for help on using the changeset viewer.