Expand debug to contain more than 31 cases
Kornel Benko
kornel at lyx.org
Fri Apr 22 11:56:20 UTC 2022
Am Fri, 22 Apr 2022 13:40:19 +0200
schrieb Pavel Sanda <sanda at lyx.org>:
> 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).
Try to use
$ lyx -dbg
it should display
...
4294967296 debug ...
then 1L would be 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.
I wanted to be sure ...
> Pavel
Kornel
--
lyx-devel mailing list
lyx-devel at lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220422/85897628/attachment.asc>
More information about the lyx-devel
mailing list