X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextparser.cpp;fp=source%2Ftextparser.cpp;h=0076c1b4bab954f8a893abf9f2e6a4ff7da5039a;hb=3b70a4d95e414f63fd39b4325d0f639c155a70f5;hp=8bcde35802108ba2f16c32584e6ace17b1e33ee9;hpb=6fde1d2f014faa23b988d0db9d2437ff9745294b;p=libs%2Fdatafile.git diff --git a/source/textparser.cpp b/source/textparser.cpp index 8bcde35..0076c1b 100644 --- a/source/textparser.cpp +++ b/source/textparser.cpp @@ -121,7 +121,7 @@ Token TextParser::parse_token() comment = 3; else if(comment==3) // Skip the second character of block comment end comment = 0; - else if(!isspace(c) && !comment) + else if(c!=-1 && !isspace(c) && !comment) comment = -1; }