View | Details | Raw Unified | Return to bug 209017
Collapse All | Expand All

(-)misc/bdelta/files/patch-libbdelta.cpp (+13 lines)
Line 0 Link Here
1
--- libbdelta.cpp.orig	2003-07-20 02:15:37 UTC
2
+++ libbdelta.cpp
3
@@ -204,8 +204,8 @@ void findMatches(BDelta_Instance *b, Che
4
       unsigned lastf1Place = place?place->obj->p1+place->obj->num:0;
5
       int closestMatch=0;
6
       for (int i = 1; i < numcheckMatches; ++i)
7
-        if (abs(lastf1Place-h->hash_items[checkMatches[i]].loc) <
8
-            abs(lastf1Place-h->hash_items[checkMatches[closestMatch]].loc))
9
+        if (abs((int)(lastf1Place-h->hash_items[checkMatches[i]].loc)) <
10
+            abs((int)(lastf1Place-h->hash_items[checkMatches[closestMatch]].loc)))
11
 	  closestMatch=i;
12
 
13
       unsigned p1 = h->hash_items[checkMatches[closestMatch]].loc, p2 = matchP2[closestMatch];

Return to bug 209017