aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index 8ee564db821..0e2a704f529 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1929,7 +1929,7 @@ bool-vector. IDX starts at 0. */)
1929 1929
1930 if (idxval < 0 || idxval >= SCHARS (array)) 1930 if (idxval < 0 || idxval >= SCHARS (array))
1931 args_out_of_range (array, idx); 1931 args_out_of_range (array, idx);
1932 CHECK_NUMBER (newelt); 1932 CHECK_CHARACTER (newelt);
1933 1933
1934 nbytes = SBYTES (array); 1934 nbytes = SBYTES (array);
1935 1935
@@ -1966,7 +1966,8 @@ bool-vector. IDX starts at 0. */)
1966 args_out_of_range (array, idx); 1966 args_out_of_range (array, idx);
1967 CHECK_NUMBER (newelt); 1967 CHECK_NUMBER (newelt);
1968 1968
1969 if (XINT (newelt) < 0 || ASCII_CHAR_P (XINT (newelt))) 1969 if (XINT (newelt) < 0 || ASCII_CHAR_P (XINT (newelt))
1970 || CHAR_BYTE8_P (XINT (newelt)))
1970 SSET (array, idxval, XINT (newelt)); 1971 SSET (array, idxval, XINT (newelt));
1971 else 1972 else
1972 { 1973 {