Expand debug to contain more than 31 cases

Pavel Sanda sanda at lyx.org
Sun Apr 24 19:45:13 UTC 2022


On Fri, Apr 22, 2022 at 01:56:20PM +0200, Kornel Benko wrote:
> Try to use
> 	$ lyx -dbg
> it should display
> 	...
> 	4294967296   debug ...
> then 1L would be correct.

Seems to be correct now.

> > > +// 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.
> 
> I wanted to be sure ...

I do not see any ambiguity here. Mention of long long int goes back at least to 
ANSI C norm from 1998 and the range of 2^64 is already there.

Pavel


More information about the lyx-devel mailing list