Expand debug to contain more than 31 cases

Kornel Benko kornel at lyx.org
Mon Apr 25 08:10:26 UTC 2022


Am Sun, 24 Apr 2022 21:45:13 +0200
schrieb Pavel Sanda <sanda at lyx.org>:

> 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

Pavel, I'd like to see the output of the following c++ source
	#include <stdint.h>

compiled with
	$ c++ -E -g3
because I prefer to use something like uint64_t over 'unsigned long long'.

Other than this, if the test is really too itching, I am not opposing too strong to
remove it.

	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/20220425/de8416d0/attachment.asc>


More information about the lyx-devel mailing list