aboutsummaryrefslogtreecommitdiff
path: root/src/example/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/dump.c')
-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;
}