diff --git a/panda/src/express/hashVal.cxx b/panda/src/express/hashVal.cxx index e7f9e910cb..2ee4ee6bd9 100644 --- a/panda/src/express/hashVal.cxx +++ b/panda/src/express/hashVal.cxx @@ -61,12 +61,12 @@ input_hex(istream &in) { } if (i != 32) { - in.setstate(ios::failbit); + in.clear(ios::failbit|in.rdstate()); return; } if (!in.eof()) { - in.unget(); + in.putback(ch); } else { in.clear(); }