From 820bb3044d203aafa955cdb84c259101f051620e Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 5 Jul 2010 21:39:38 -0700 Subject: checkpointing: fix minor bug Somehow we now need to explicitly specialize on 'signed char' and not just 'char' to catch cases like int8_t --- src/sim/serialize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sim') 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; } -- cgit v1.2.3