summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index f8b728a4805..e6be07179be 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2630,6 +2630,7 @@ bool-vector. IDX starts at 0. */)
}
else if (RECORDP (array))
{
+ CHECK_IMPURE (array, XVECTOR (array));
if (idxval < 0 || idxval >= PVSIZE (array))
args_out_of_range (array, idx);
ASET (array, idxval, newelt);