diff options
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c index 6db705cec4e..c18d8eb749c 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -782,12 +782,12 @@ See `find-composition' for more detail.") | |||
| 782 | if (!NILP (string)) | 782 | if (!NILP (string)) |
| 783 | { | 783 | { |
| 784 | CHECK_STRING (string, 2); | 784 | CHECK_STRING (string, 2); |
| 785 | if (XINT (pos) < 0 || XINT (pos) >= XSTRING (string)->size) | 785 | if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size) |
| 786 | args_out_of_range (string, pos); | 786 | args_out_of_range (string, pos); |
| 787 | } | 787 | } |
| 788 | else | 788 | else |
| 789 | { | 789 | { |
| 790 | if (XINT (pos) < BEGV || XINT (pos) >= ZV) | 790 | if (XINT (pos) < BEGV || XINT (pos) > ZV) |
| 791 | args_out_of_range (Fcurrent_buffer (), pos); | 791 | args_out_of_range (Fcurrent_buffer (), pos); |
| 792 | } | 792 | } |
| 793 | 793 | ||