[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 32-bit treesit warnings
From: |
Yuan Fu |
Subject: |
Re: 32-bit treesit warnings |
Date: |
Tue, 17 Sep 2024 20:56:30 -0700 |
> On Sep 17, 2024, at 7:19 PM, Po Lu <luangruo@yahoo.com> wrote:
>
> This warning has lately started to be emitted during compilations of
> 32-bit builds:
>
> /[...]/emacs/src/treesit.c:506:14: warning: format specifies type 'long' but
> the argument has type 'ptrdiff_t' (aka 'int') [-Wformat]
> buf_name, BUF_BEG (buf),
> ^~~~~~~~~~~~~
> /[...]/emacs/src/treesit.c:507:4: warning: format specifies type 'long' but
> the argument has type 'ptrdiff_t' (aka 'int') [-Wformat]
> BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf));
> ^~~~~~~~~~~~~~
> /[...]/emacs/src/treesit.c:507:20: warning: format specifies type 'long' but
> the argument has type 'ptrdiff_t' (aka 'int') [-Wformat]
> BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf));
> ^~~~~~~~~~~~
> /[...]/emacs/src/treesit.c:507:34: warning: format specifies type 'long' but
> the argument has type 'ptrdiff_t' (aka 'int') [-Wformat]
> BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf));
>
> Will anyone please see to this?
>
I fixed the issue, thanks for the report! Also feel free to tag me if anything
in treesit.c goes wrong so I can fix it ASAP.
Yuan