diff options
Diffstat (limited to 'cpukit/libmisc/stringto/stringtolongdouble.c')
-rw-r--r-- | cpukit/libmisc/stringto/stringtolongdouble.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libmisc/stringto/stringtolongdouble.c b/cpukit/libmisc/stringto/stringtolongdouble.c index 3e7b6cfd26..f13b6f1890 100644 --- a/cpukit/libmisc/stringto/stringtolongdouble.c +++ b/cpukit/libmisc/stringto/stringtolongdouble.c @@ -1,3 +1,10 @@ +/** + * @file + * + * @brief Convert String to long double (with validation) + * @ingroup libmisc_conv_help Conversion Helpers + */ + /* * COPYRIGHT (c) 2009. * On-Line Applications Research Corporation (OAR). @@ -46,7 +53,7 @@ rtems_status_code rtems_string_to_long_double ( if ( end == s ) return RTEMS_NOT_DEFINED; - if ( ( errno == ERANGE ) && + if ( ( errno == ERANGE ) && (( result == 0 ) || ( result == HUGE_VALL ) || ( result == -HUGE_VALL ))) return RTEMS_INVALID_NUMBER; |