From 221aa50a5b41d0d175805aff4386e3733021aeac Mon Sep 17 00:00:00 2001 From: stephena Date: Sun, 12 Jun 2011 20:20:19 +0000 Subject: [PATCH] Make sure all hexidecimal number output in the debugger is in uppercase. Bumped version number. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2259 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/Version.hxx | 2 +- src/debugger/Debugger.cxx | 6 +++--- src/debugger/Debugger.hxx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/Version.hxx b/src/common/Version.hxx index adcdfe764..9f1c98c16 100644 --- a/src/common/Version.hxx +++ b/src/common/Version.hxx @@ -22,7 +22,7 @@ #include -#define STELLA_VERSION "3.4.1" +#define STELLA_VERSION "3.4.2_svn" #define STELLA_BUILD atoi("$Rev$" + 6) #endif diff --git a/src/debugger/Debugger.cxx b/src/debugger/Debugger.cxx index 2222d2bc4..11462ea94 100644 --- a/src/debugger/Debugger.cxx +++ b/src/debugger/Debugger.cxx @@ -323,11 +323,11 @@ string Debugger::valueToString(int value, BaseFormat outputBase) case kBASE_16: default: if(value < 0x100) - sprintf(buf, "%02x", value); + sprintf(buf, "%02X", value); else if(value < 0x10000) - sprintf(buf, "%04x", value); + sprintf(buf, "%04X", value); else - sprintf(buf, "%08x", value); + sprintf(buf, "%08X", value); break; } diff --git a/src/debugger/Debugger.hxx b/src/debugger/Debugger.hxx index e2c629027..a234d0ec3 100644 --- a/src/debugger/Debugger.hxx +++ b/src/debugger/Debugger.hxx @@ -188,19 +188,19 @@ class Debugger : public DialogContainer static char* to_hex_4(int i) { static char out[2]; - sprintf(out, "%1x", i); + sprintf(out, "%1X", i); return out; } static char* to_hex_8(int i) { static char out[3]; - sprintf(out, "%02x", i); + sprintf(out, "%02X", i); return out; } static char* to_hex_16(int i) { static char out[5]; - sprintf(out, "%04x", i); + sprintf(out, "%04X", i); return out; } static char* to_bin(int dec, int places, char *buf) {