]> sourceware.org Git - systemtap.git/commitdiff
Restore stream state
authorLukas Berk <lberk@redhat.com>
Mon, 1 Aug 2011 13:50:01 +0000 (09:50 -0400)
committerLukas Berk <lberk@redhat.com>
Mon, 1 Aug 2011 13:50:01 +0000 (09:50 -0400)
* util.h: retore stream state back to std::dec

util.h

diff --git a/util.h b/util.h
index 49215d5d9eae2175a3be502d995153787ab70f5e..ab062a521121d8080ced369ec4ace2b3ca5120df 100644 (file)
--- 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();
 }
This page took 0.023955 seconds and 5 git commands to generate.