Fix tab spacing issues for odd numbers

git-svn-id: file:///home/svn/framework3/trunk@6158 4d416f70-5f16-0410-b530-b9f4589650da
unstable
pusscat 2009-01-15 22:27:23 +00:00
parent 3b4596ab2e
commit 55bc55afed
11 changed files with 5 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -109,7 +109,7 @@ void memDiffJutsu(char *inputType, DWORD size, char *input, ULONG64 address) {
if (i % 16 == 15 || i == size-1) {
// Print the actual characters with differences in bold
for (j = 0; j < 16; j++) {
for (j = 0; j != i % 16 + 1; j++) {
// Diff the two locations
if (lineActual[j] != lineExpected[j]) {
// Store badchars, and bad offsets
@ -125,10 +125,13 @@ void memDiffJutsu(char *inputType, DWORD size, char *input, ULONG64 address) {
// Take note of upper / lower / null exclusions
}
if (i == size-1)
for (j = 0; j < 15 - i % 16; j+=2)
dprintf("\t");
dprintf("\t");
// Now print the Expected characters
for (j = 0; j < 16; j++) {
for (j = 0; j != i % 16 + 1; j++) {
dprintf("%02x ", lineExpected[j]);
}
dprintf("\n");