diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 29aabdd4616..a6980e867a7 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2389,7 +2389,7 @@ LENGTH must be a number. INIT matters only in whether it is t or nil. */) | |||
| 2389 | 2389 | ||
| 2390 | /* Clear any extraneous bits in the last byte. */ | 2390 | /* Clear any extraneous bits in the last byte. */ |
| 2391 | p->data[length_in_chars - 1] | 2391 | p->data[length_in_chars - 1] |
| 2392 | &= (1 << (XINT (length) % BOOL_VECTOR_BITS_PER_CHAR)) - 1; | 2392 | &= (1 << ((XFASTINT (length) - 1) % BOOL_VECTOR_BITS_PER_CHAR + 1)) - 1; |
| 2393 | } | 2393 | } |
| 2394 | 2394 | ||
| 2395 | return val; | 2395 | return val; |