Commit 686f91ee authored by Jan Kiene's avatar Jan Kiene
Browse files

make is_number ignore CR characters as well

-> makes ISM file reader accept windows-style line endings
parent a0ecf589
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ bool is_number( char *str )
    i = 0;
    while ( str[i] != 0 )
    {
        if ( ( str[i] < '0' || str[i] > '9' ) && str[i] != '.' && str[i] != '-' && str[i] != '\n' )
        if ( ( str[i] < '0' || str[i] > '9' ) && str[i] != '.' && str[i] != '-' && str[i] != '\n' && str[i] != '\r' )
        {
            return false;
        }