Mercurial > hg > xemacs-beta
comparison src/rangetab.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 190b164ddcac |
children | e38acbeb1cae |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
202 extent_list_locate(). */ | 202 extent_list_locate(). */ |
203 while (left != right) | 203 while (left != right) |
204 { | 204 { |
205 /* RIGHT might not point to a valid entry (i.e. it's at the end | 205 /* RIGHT might not point to a valid entry (i.e. it's at the end |
206 of the list), so NEWPOS must round down. */ | 206 of the list), so NEWPOS must round down. */ |
207 unsigned int newpos = (left + right) >> 1; | 207 int newpos = (left + right) >> 1; |
208 struct range_table_entry *entry = tab + newpos; | 208 struct range_table_entry *entry = tab + newpos; |
209 if (pos > entry->last) | 209 if (pos > entry->last) |
210 left = newpos+1; | 210 left = newpos+1; |
211 else if (pos < entry->first) | 211 else if (pos < entry->first) |
212 right = newpos; | 212 right = newpos; |