]> git.tdb.fi Git - libs/datafile.git/commitdiff
Output characters and not ASCII codes in parse_error
authorMikko Rasa <tdb@tdb.fi>
Fri, 1 Sep 2006 21:43:14 +0000 (21:43 +0000)
committerMikko Rasa <tdb@tdb.fi>
Fri, 1 Sep 2006 21:43:14 +0000 (21:43 +0000)
source/parser.cpp

index c9ad188868a0bed69087879472b2741b67e07f46..7b9af11d60ca292a860ae346cebcb813220e5469 100644 (file)
@@ -341,7 +341,7 @@ string Parser::get_location()
 void Parser::parse_error(int c, int state)
 {
        ostringstream ss;
-       ss<<get_location()<<": Parse error at '"<<c<<"' (state "<<state<<')';
+       ss<<get_location()<<": Parse error at '"<<(char)c<<"' (state "<<state<<')';
        throw DataError(ss.str());
 }