diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c index 6b07f0bd7b1..0a7fda6815c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2023,7 +2023,7 @@ bool_vector_payload_bytes (ptrdiff_t nr_bits, | |||
| 2023 | ptrdiff_t exact_needed_bytes; | 2023 | ptrdiff_t exact_needed_bytes; |
| 2024 | ptrdiff_t needed_bytes; | 2024 | ptrdiff_t needed_bytes; |
| 2025 | 2025 | ||
| 2026 | eassert_and_assume (nr_bits >= 0); | 2026 | eassert (nr_bits >= 0); |
| 2027 | 2027 | ||
| 2028 | exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT; | 2028 | exact_needed_bytes = ROUNDUP ((size_t) nr_bits, CHAR_BIT) / CHAR_BIT; |
| 2029 | needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_SIZE_T) / CHAR_BIT; | 2029 | needed_bytes = ROUNDUP ((size_t) nr_bits, BITS_PER_SIZE_T) / CHAR_BIT; |
| @@ -2060,8 +2060,8 @@ LENGTH must be a number. INIT matters only in whether it is t or nil. */) | |||
| 2060 | total_payload_bytes = bool_vector_payload_bytes | 2060 | total_payload_bytes = bool_vector_payload_bytes |
| 2061 | (XFASTINT (length), &exact_payload_bytes); | 2061 | (XFASTINT (length), &exact_payload_bytes); |
| 2062 | 2062 | ||
| 2063 | eassert_and_assume (exact_payload_bytes <= total_payload_bytes); | 2063 | eassert (exact_payload_bytes <= total_payload_bytes); |
| 2064 | eassert_and_assume (0 <= exact_payload_bytes); | 2064 | eassert (0 <= exact_payload_bytes); |
| 2065 | 2065 | ||
| 2066 | needed_elements = ROUNDUP ((size_t) ((bool_header_size - header_size) | 2066 | needed_elements = ROUNDUP ((size_t) ((bool_header_size - header_size) |
| 2067 | + total_payload_bytes), | 2067 | + total_payload_bytes), |
| @@ -2816,7 +2816,7 @@ vector_nbytes (struct Lisp_Vector *v) | |||
| 2816 | ptrdiff_t payload_bytes = | 2816 | ptrdiff_t payload_bytes = |
| 2817 | bool_vector_payload_bytes (bv->size, NULL); | 2817 | bool_vector_payload_bytes (bv->size, NULL); |
| 2818 | 2818 | ||
| 2819 | eassert_and_assume (payload_bytes >= 0); | 2819 | eassert (payload_bytes >= 0); |
| 2820 | size = bool_header_size + ROUNDUP (payload_bytes, word_size); | 2820 | size = bool_header_size + ROUNDUP (payload_bytes, word_size); |
| 2821 | } | 2821 | } |
| 2822 | else | 2822 | else |