Mercurial > hg > xemacs-beta
comparison src/text.c @ 4525:d64f1060cd65
Fix off-by-one error in ccl_driver. <87iqr7v7p0.fsf@uwakimon.sk.tsukuba.ac.jp>
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sat, 01 Nov 2008 23:32:53 +0900 |
parents | c098c0d9125f |
children | 38493c0fb952 |
comparison
equal
deleted
inserted
replaced
4524:03ba50f7ecd7 | 4525:d64f1060cd65 |
---|---|
3016 if (x - best_below_byte < best_above_byte - x) | 3016 if (x - best_below_byte < best_above_byte - x) |
3017 { | 3017 { |
3018 int record = x - best_below_byte > 5000; | 3018 int record = x - best_below_byte > 5000; |
3019 | 3019 |
3020 #ifdef OLD_LOOP /* old code */ | 3020 #ifdef OLD_LOOP /* old code */ |
3021 while (best_below_byte < x) | 3021 (best_below_byte < x) |
3022 { | 3022 { |
3023 best_below++; | 3023 best_below++; |
3024 INC_BYTEBPOS (buf, best_below_byte); | 3024 INC_BYTEBPOS (buf, best_below_byte); |
3025 } | 3025 } |
3026 #else | 3026 #else |