tree-sitter/lib
Aleksei Bavshin fe33599f46
lib: fix incorrect int ptr cast on big-endian architectures
`*usize` -> `*u32` conversion on 64-bit big-endian machine takes high
halfword of the value. As a consequence, any result returned via
`count` is unexpectedly shifted left:

    u32   = 00 00 00 01             // 1
    usize = 00 00 00 01 00 00 00 00 // 4294967296

Fixes following test failure:
```
$ cargo test -- tests::corpus_test
<...>
running 13 tests
memory allocation of 206158430208 bytes failed
error: test failed, to rerun pass '--lib'
```
2022-03-23 00:47:01 -07:00
..
binding_rust lib: fix incorrect int ptr cast on big-endian architectures 2022-03-23 00:47:01 -07:00
binding_web libs: 0.20.6 2022-03-02 20:50:29 -08:00
include/tree_sitter Fix back compat by moving primary_field_ids to the end 2022-01-17 17:23:02 -08:00
src Properly incorporate lookahead bytes when recovering via missing token 2022-03-02 17:12:25 -08:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml libs: 0.20.6 2022-03-02 20:50:29 -08:00
compile_flags.txt Add files needed for using clangd 2022-02-22 09:44:50 -08:00
README.md lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00

Subdirectories

  • src - C source code for the Tree-sitter library
  • include - C headers for the Tree-sitter library
  • binding_rust - Rust bindings to the Tree-sitter library
  • binding_web - JavaScript bindings to the Tree-sitter library, using WebAssembly