Commit 311d5d7c authored by Paul Eggert's avatar Paul Eggert
Browse files

* fns.c: Don't assume string byte-length fits in 'int'.

parent f03dc6ef
......@@ -2,6 +2,7 @@
* fns.c (Ffillarray): Don't assume bool vector size fits in 'int'.
Use much-faster test for byte-length change.
Don't assume string byte-length fits in 'int'.
* alloc.c (Fmake_bool_vector): Avoid unnecessary multiplication.
......@@ -2169,7 +2169,7 @@ ARRAY is a vector, string, char-table, or bool-vector. */)
unsigned char str[MAX_MULTIBYTE_LENGTH];
int len = CHAR_STRING (charval, str);
EMACS_INT size_byte = SBYTES (array);
int i;
|| SCHARS (array) * len != size_byte)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment