Index: xdelta.c
===================================================================
--- xdelta.c	(Revision 1182495)
+++ xdelta.c	(Arbeitskopie)
@@ -256,9 +256,9 @@
     return 0;
 
   /* Extend the match forward as far as possible */
-  max_delta = asize - apos - MATCH_BLOCKSIZE < bsize - bpos - MATCH_BLOCKSIZE
-            ? asize - apos - MATCH_BLOCKSIZE
-            : bsize - bpos - MATCH_BLOCKSIZE;
+  max_delta = (asize - apos - MATCH_BLOCKSIZE < bsize - bpos - MATCH_BLOCKSIZE)
+            ? (asize - apos - MATCH_BLOCKSIZE)
+            : (bsize - bpos - MATCH_BLOCKSIZE);
   delta = match_length(a + apos + MATCH_BLOCKSIZE,
                        b + bpos + MATCH_BLOCKSIZE,
                        max_delta);
