aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2020-07-05 19:45:10 +0100
committerAndrea Corallo2020-07-09 16:22:48 +0100
commit4348969536f2d2a16e794ff3ce15f855f9ec7e1e (patch)
tree1bc4dffba35765b3f38f0f60bc9b401550af5631
parent3db6ace804472ccde368e173df21484f19049317 (diff)
downloademacs-4348969536f2d2a16e794ff3ce15f855f9ec7e1e.tar.gz
emacs-4348969536f2d2a16e794ff3ce15f855f9ec7e1e.zip
* test/src/comp-test-funcs.el (comp-tests-aref-aset-f) : Fix UB.
-rw-r--r--test/src/comp-test-funcs.el2
1 files changed, 1 insertions, 1 deletions
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 @@
66 (length '(1 2 3))) 66 (length '(1 2 3)))
67 67
68(defun comp-tests-aref-aset-f () 68(defun comp-tests-aref-aset-f ()
69 (let ((vec [1 2 3])) 69 (let ((vec (make-vector 3 0)))
70 (aset vec 2 100) 70 (aset vec 2 100)
71 (aref vec 2))) 71 (aref vec 2)))
72 72