diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c index 0c7cb241568..79ae01f26f4 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1402,7 +1402,7 @@ for this variable. */) | |||
| 1402 | { | 1402 | { |
| 1403 | struct buffer *b; | 1403 | struct buffer *b; |
| 1404 | 1404 | ||
| 1405 | for (b = all_buffers; b; b = b->next) | 1405 | for (b = all_buffers; b; b = b->header.next.buffer) |
| 1406 | if (!PER_BUFFER_VALUE_P (b, idx)) | 1406 | if (!PER_BUFFER_VALUE_P (b, idx)) |
| 1407 | PER_BUFFER_VALUE (b, offset) = value; | 1407 | PER_BUFFER_VALUE (b, offset) = value; |
| 1408 | } | 1408 | } |
| @@ -2029,9 +2029,9 @@ or a byte-code object. IDX starts at 0. */) | |||
| 2029 | { | 2029 | { |
| 2030 | int size = 0; | 2030 | int size = 0; |
| 2031 | if (VECTORP (array)) | 2031 | if (VECTORP (array)) |
| 2032 | size = XVECTOR (array)->size; | 2032 | size = XVECTOR_SIZE (array); |
| 2033 | else if (COMPILEDP (array)) | 2033 | else if (COMPILEDP (array)) |
| 2034 | size = XVECTOR (array)->size & PSEUDOVECTOR_SIZE_MASK; | 2034 | size = XVECTOR_SIZE (array) & PSEUDOVECTOR_SIZE_MASK; |
| 2035 | else | 2035 | else |
| 2036 | wrong_type_argument (Qarrayp, array); | 2036 | wrong_type_argument (Qarrayp, array); |
| 2037 | 2037 | ||
| @@ -2058,7 +2058,7 @@ bool-vector. IDX starts at 0. */) | |||
| 2058 | 2058 | ||
| 2059 | if (VECTORP (array)) | 2059 | if (VECTORP (array)) |
| 2060 | { | 2060 | { |
| 2061 | if (idxval < 0 || idxval >= XVECTOR (array)->size) | 2061 | if (idxval < 0 || idxval >= XVECTOR_SIZE (array)) |
| 2062 | args_out_of_range (array, idx); | 2062 | args_out_of_range (array, idx); |
| 2063 | XVECTOR (array)->contents[idxval] = newelt; | 2063 | XVECTOR (array)->contents[idxval] = newelt; |
| 2064 | } | 2064 | } |