aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2017-01-17 15:56:14 +0000
committerIan C <ianc@noddybox.co.uk>2017-01-17 15:56:14 +0000
commit565acd97cab4ebebcd794245df08afd62c725992 (patch)
treeef33ff34517bbc0c1979cf640145745d51c8374e /src
parent2ac64e7b95dd26df77d0e386fadd00c2e2151ca1 (diff)
Small tweak to dump tool.
Diffstat (limited to 'src')
-rw-r--r--src/example/dump.c8
1 files changed, 6 insertions, 2 deletions
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;
}