diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-08-27 23:18:36 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2020-09-04 20:59:00 +0200 |
commit | 7593c8012b1d183ce4806daca3fb50795ab969bf (patch) | |
tree | b14e9f030b156aedd26ea45c79f73e5317cffe55 /src/tree_sitter/alloc.h | |
parent | 3853276d9cacc99a2698117e904475dbf7033383 (diff) | |
download | rneovim-7593c8012b1d183ce4806daca3fb50795ab969bf.tar.gz rneovim-7593c8012b1d183ce4806daca3fb50795ab969bf.tar.bz2 rneovim-7593c8012b1d183ce4806daca3fb50795ab969bf.zip |
treesitter: update runtime
Diffstat (limited to 'src/tree_sitter/alloc.h')
-rw-r--r-- | src/tree_sitter/alloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h index d3c6b5eca8..32c90f23c8 100644 --- a/src/tree_sitter/alloc.h +++ b/src/tree_sitter/alloc.h @@ -58,7 +58,7 @@ static inline bool ts_toggle_allocation_recording(bool value) { static inline void *ts_malloc(size_t size) { void *result = malloc(size); if (size > 0 && !result) { - fprintf(stderr, "tree-sitter failed to allocate %lu bytes", size); + fprintf(stderr, "tree-sitter failed to allocate %zu bytes", size); exit(1); } return result; @@ -67,7 +67,7 @@ static inline void *ts_malloc(size_t size) { static inline void *ts_calloc(size_t count, size_t size) { void *result = calloc(count, size); if (count > 0 && !result) { - fprintf(stderr, "tree-sitter failed to allocate %lu bytes", count * size); + fprintf(stderr, "tree-sitter failed to allocate %zu bytes", count * size); exit(1); } return result; @@ -76,7 +76,7 @@ static inline void *ts_calloc(size_t count, size_t size) { static inline void *ts_realloc(void *buffer, size_t size) { void *result = realloc(buffer, size); if (size > 0 && !result) { - fprintf(stderr, "tree-sitter failed to reallocate %lu bytes", size); + fprintf(stderr, "tree-sitter failed to reallocate %zu bytes", size); exit(1); } return result; |