Changeset 10666


Ignore:
Timestamp:
05/11/11 17:58:41 (13 years ago)
Author:
tbretz
Message:
Make sure that also zeroes are correctly extracted even if the last character in the stream is a zero.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Converter.cc

    r10657 r10666  
    217217    {
    218218        if (line.peek()==-1)
     219        {
     220            line.clear(ios::eofbit);
    219221            return 0;
     222        }
    220223
    221224        if (line.peek()=='x')
     
    225228        }
    226229        else
     230        {
     231            line.unget();
    227232            line >> oct;
    228 
     233        }
    229234    }
    230235    else
Note: See TracChangeset for help on using the changeset viewer.