[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 035024b4e5a: ; Fix treesit.c printing
From: |
Yuan Fu |
Subject: |
emacs-30 035024b4e5a: ; Fix treesit.c printing |
Date: |
Tue, 17 Sep 2024 23:54:50 -0400 (EDT) |
branch: emacs-30
commit 035024b4e5a8eb759e30ce72ed3b83036f35525e
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Fix treesit.c printing
* src/treesit.c (treesit_debug_print_parser_list): Use PRIuPTR so 32bit
systems compile without warnings.
---
src/treesit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/treesit.c b/src/treesit.c
index 628a4dff9cc..8fc7385a3da 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -494,7 +494,7 @@ treesit_debug_print_parser_list (char *msg, Lisp_Object
parser)
{
struct buffer *buf = XBUFFER (XTS_PARSER (parser)->buffer);
char *buf_name = SSDATA (BVAR (buf, name));
- printf ("%s (%s) [%s] <%s>: %ld(%ld)-(%ld)%ld {\n",
+ printf ("%s (%s) [%s] <%s>: %"PRIuPTR"(%"PRIuPTR")-(%"PRIuPTR")%"PRIuPTR"
{\n",
msg == NULL ? "" : msg,
SSDATA (SYMBOL_NAME (Vthis_command)),
SSDATA (SYMBOL_NAME (XTS_PARSER (parser)->language_symbol)),
@@ -505,7 +505,7 @@ treesit_debug_print_parser_list (char *msg, Lisp_Object
parser)
FOR_EACH_TAIL (tail)
{
struct Lisp_TS_Parser *parser = XTS_PARSER (XCAR (tail));
- printf ("[%s %s %s %ld-%ld T:%ld]\n", SSDATA (SYMBOL_NAME
(parser->language_symbol)),
+ printf ("[%s %s %s %"PRIuPTR"-%"PRIuPTR" T:%"PRIuPTR"]\n", SSDATA
(SYMBOL_NAME (parser->language_symbol)),
SSDATA (SYMBOL_NAME (parser->tag)),
parser->need_reparse ? "NEED-R" : "NONEED",
parser->visible_beg, parser->visible_end,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 035024b4e5a: ; Fix treesit.c printing,
Yuan Fu <=