From 4348969536f2d2a16e794ff3ce15f855f9ec7e1e Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 5 Jul 2020 19:45:10 +0100 Subject: [PATCH] * test/src/comp-test-funcs.el (comp-tests-aref-aset-f) : Fix UB. --- test/src/comp-test-funcs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el index 168819b17d6..2fe6276227a 100644 --- a/test/src/comp-test-funcs.el +++ b/test/src/comp-test-funcs.el @@ -66,7 +66,7 @@ (length '(1 2 3))) (defun comp-tests-aref-aset-f () - (let ((vec [1 2 3])) + (let ((vec (make-vector 3 0))) (aset vec 2 100) (aref vec 2))) -- 2.39.5