From 565acd97cab4ebebcd794245df08afd62c725992 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 17 Jan 2017 15:56:14 +0000 Subject: Small tweak to dump tool. --- src/example/dump.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/example') diff --git a/src/example/dump.c b/src/example/dump.c index 93713de..160d7ac 100644 --- a/src/example/dump.c +++ b/src/example/dump.c @@ -78,8 +78,12 @@ static void CompareEnds(Block **block, int count) { for(n = 0; n < count - 1 && !done; n++) { - if (block[n]->addr[block[n]->len - 1 - f] != - block[n+1]->addr[block[n+1]->len - 1 - f]) + int diff; + + diff = (int)block[n]->addr[block[n]->len - 1 - f] - + (int)block[n+1]->addr[block[n+1]->len - 1 - f]; + + if (abs(diff) > 5) { done = 1; } -- cgit v1.2.3