diff options
| author | Karl Heuer | 1994-10-04 17:19:36 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 17:19:36 +0000 |
| commit | 330e7312a3b61dc3bb7b9c970e649151ed799a23 (patch) | |
| tree | eccbfcd6ee342754d7f3ce8ec0780389907b492c /src | |
| parent | e8e536a9968182f5ee37eb4a5621ab7a520dc24e (diff) | |
| download | emacs-330e7312a3b61dc3bb7b9c970e649151ed799a23.tar.gz emacs-330e7312a3b61dc3bb7b9c970e649151ed799a23.zip | |
(validate_interval_range): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textprop.c b/src/textprop.c index acb6d4d30c9..19f469875b8 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -141,9 +141,9 @@ validate_interval_range (object, begin, end, force) | |||
| 141 | args_out_of_range (*begin, *end); | 141 | args_out_of_range (*begin, *end); |
| 142 | /* User-level Positions in strings start with 0, | 142 | /* User-level Positions in strings start with 0, |
| 143 | but the interval code always wants positions starting with 1. */ | 143 | but the interval code always wants positions starting with 1. */ |
| 144 | XFASTINT (*begin) += 1; | 144 | XSETFASTINT (*begin, XFASTINT (*begin) + 1); |
| 145 | if (begin != end) | 145 | if (begin != end) |
| 146 | XFASTINT (*end) += 1; | 146 | XSETFASTINT (*end, XFASTINT (*end) + 1); |
| 147 | i = s->intervals; | 147 | i = s->intervals; |
| 148 | 148 | ||
| 149 | if (s->size == 0) | 149 | if (s->size == 0) |