From: Steve Reinhardt Date: Tue, 6 Jul 2010 04:39:38 +0000 (-0700) Subject: checkpointing: fix minor bug X-Git-Tag: stable_2012_02_02~1003 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=820bb3044d203aafa955cdb84c259101f051620e;p=gem5.git checkpointing: fix minor bug Somehow we now need to explicitly specialize on 'signed char' and not just 'char' to catch cases like int8_t --- diff --git a/src/sim/serialize.cc b/src/sim/serialize.cc index 0e6d9b254..27831ef32 100644 --- a/src/sim/serialize.cc +++ b/src/sim/serialize.cc @@ -87,7 +87,7 @@ showParam(ostream &os, const T &value) // Treat 8-bit ints (chars) as ints on output, not as chars template <> void -showParam(ostream &os, const char &value) +showParam(ostream &os, const signed char &value) { os << (int)value; }