]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.cpp
Output characters and not ASCII codes in parse_error
[libs/datafile.git] / 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());
 }