summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cconv-tests.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-11-22 20:22:41 +0200
committerEli Zaretskii <eliz@gnu.org>2022-11-22 20:22:41 +0200
commit368d2531bec84c2e75b2fd2f32bb59fc2e7ee520 (patch)
treedf31e2d30bd5aa7aa06e9ce5838750f2ee3dcbce /test/lisp/emacs-lisp/cconv-tests.el
parentfa567684fa276511ea981cd208f99b67c521d8aa (diff)
downloademacs-368d2531bec84c2e75b2fd2f32bb59fc2e7ee520.tar.gz
emacs-368d2531bec84c2e75b2fd2f32bb59fc2e7ee520.tar.bz2
emacs-368d2531bec84c2e75b2fd2f32bb59fc2e7ee520.zip
Fix 'treesit-max-buffer-size' and its use
* lisp/treesit.el (treesit-max-buffer-size): Avoid overflow in computing buffer-size limit. Account for 32-but systems built "--with-wide-int". Extend doc string. (treesit-ready-p): Compare the limit with the size of the buffer in bytes, not in characters. * src/treesit.c (treesit_check_buffer_size): Measure buffer size in bytes.
Diffstat (limited to 'test/lisp/emacs-lisp/cconv-tests.el')
0 files changed, 0 insertions, 0 deletions