Expand debug to contain more than 31 cases
Pavel Sanda
sanda at lyx.org
Fri Apr 22 11:40:19 UTC 2022
On Fri, Apr 22, 2022 at 12:28:06PM +0200, Kornel Benko wrote:
> Am Thu, 21 Apr 2022 15:38:23 +0200
> schrieb Pavel Sanda <sanda at lyx.org>:
>
> > On Thu, Apr 21, 2022 at 02:53:37PM +0200, Jean-Marc Lasgouttes wrote:
> > > Do you have a better idea?
> >
> > long long ?
> > Pavel
>
> Ok, is the attached working for you?
It compiles, I did not try to run (i.e. check whether literal 1L is correct).
> +// Make sure at compile time that sizeof(unsigned long long) >= 8
> +typedef char p__LINE__[ (sizeof(unsigned long long) > 7) ? 1 : -1];
long long is supposed to be able to represent values between -(2^63 -1) to 2^63 -1
so I do not think this check is necessary.
Pavel
More information about the lyx-devel
mailing list