From: Lukas Berk Date: Mon, 1 Aug 2011 13:50:01 +0000 (-0400) Subject: Restore stream state X-Git-Tag: release-1.7~155^2~43 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=49e1b0a11e3337ef37152eefc0f119c76cb91ff3;p=systemtap.git Restore stream state * util.h: retore stream state back to std::dec --- diff --git a/util.h b/util.h index 49215d5d9..ab062a521 100644 --- a/util.h +++ b/util.h @@ -111,7 +111,7 @@ inline std::string lex_cast_hex(IN const & in) { std::ostringstream ss; - if (!(ss << std::showbase << std::hex << in)) + if (!(ss << std::showbase << std::hex << in << std::dec)) throw std::runtime_error(_("bad lexical cast")); return ss.str(); }