]> git.eshelyaron.com Git - emacs.git/commit
Fix casts to uint32_t in treesit.c
authorYuan Fu <casouri@gmail.com>
Tue, 18 Oct 2022 00:04:49 +0000 (17:04 -0700)
committerYuan Fu <casouri@gmail.com>
Tue, 18 Oct 2022 00:04:49 +0000 (17:04 -0700)
commit954b6e1dc3edb6a8260be810c3f02c335e90b6b8
tree58f55379193ab627a115e4b42da17712dfff55ff
parente8df6c311fcf59bf23d31b9db2bb8fec9d78fbe7
Fix casts to uint32_t in treesit.c

* src/treesit.c (treesit_tree_edit_1): Add assertion.
(treesit_ensure_position_synced): Add assertion.
(treesit_check_buffer_size): Change error message.
(treesit_ensure_parsed): Move treesit_check_buffer_size and
treesit_ensure_position_synced together
(treesit_read_buffer): Add assertion.
(Ftreesit_parser_set_included_ranges): Add assertion.  Signal error if
list too long.  Add check for buffer size.
(Ftreesit_parser_included_ranges): Add check for buffer size.
(Ftreesit_query_capture): Add assertion.
src/treesit.c