##// END OF EJS Templates
bdiff.c: use unsigned arithmetic for hash computation...
Markus F.X.J. Oberhumer -
r13731:5d0cdf4e default
parent child Browse files
Show More
@@ -65,7 +65,8 b' struct hunk {'
65
65
66 static int splitlines(const char *a, int len, struct line **lr)
66 static int splitlines(const char *a, int len, struct line **lr)
67 {
67 {
68 int h, i;
68 unsigned h;
69 int i;
69 const char *p, *b = a;
70 const char *p, *b = a;
70 const char * const plast = a + len - 1;
71 const char * const plast = a + len - 1;
71 struct line *l;
72 struct line *l;
@@ -98,7 +99,8 b' static int splitlines(const char *a, int'
98 }
99 }
99
100
100 /* set up a sentinel */
101 /* set up a sentinel */
101 l->h = l->len = 0;
102 l->h = 0;
103 l->len = 0;
102 l->l = a + len;
104 l->l = a + len;
103 return i - 1;
105 return i - 1;
104 }
106 }
General Comments 0
You need to be logged in to leave comments. Login now