Skip to content

Commit

Permalink
fix for issue #326
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Shwartsman committed Jun 14, 2024
1 parent 3be49b5 commit 8712a31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bochs/gui/enh_dbg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ void FillBrkp()
}

// performs endian byteswapping the hard way, for a Data dump
void FillDataX(char* t, char C, bool doHex)
void FillDataX(char* t, unsigned char C, bool doHex)
{
char tmpbuf[40];
char *d = tmpbuf;
Expand All @@ -2009,8 +2009,8 @@ void FillDataX(char* t, char C, bool doHex)

if (doHex != FALSE)
{
*d = AsciiHex[2* (unsigned char)C];
d[1] = AsciiHex[2* (unsigned char)C + 1];
*d = AsciiHex[2*C];
d[1] = AsciiHex[2*C + 1];
d[2] = 0;
if (isLittleEndian) // little endian => reverse hex digits
{
Expand Down

0 comments on commit 8712a31

Please sign in to comment.