diff options
Diffstat (limited to 'byte_diff.c')
-rw-r--r-- | byte_diff.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/byte_diff.c b/byte_diff.c index 0c4d17b..7abc766 100644 --- a/byte_diff.c +++ b/byte_diff.c | |||
@@ -8,10 +8,18 @@ register unsigned int n; | |||
8 | register char *t; | 8 | register char *t; |
9 | { | 9 | { |
10 | for (;;) { | 10 | for (;;) { |
11 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | 11 | if (!n) return 0; |
12 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | 12 | if (*s != *t) break; |
13 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | 13 | ++s; ++t; --n; |
14 | if (!n) return 0; if (*s != *t) break; ++s; ++t; --n; | 14 | if (!n) return 0; |
15 | if (*s != *t) break; | ||
16 | ++s; ++t; --n; | ||
17 | if (!n) return 0; | ||
18 | if (*s != *t) break; | ||
19 | ++s; ++t; --n; | ||
20 | if (!n) return 0; | ||
21 | if (*s != *t) break; | ||
22 | ++s; ++t; --n; | ||
15 | } | 23 | } |
16 | return ((int)(unsigned int)(unsigned char) *s) | 24 | return ((int)(unsigned int)(unsigned char) *s) |
17 | - ((int)(unsigned int)(unsigned char) *t); | 25 | - ((int)(unsigned int)(unsigned char) *t); |