groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] integer size


From: Larry Jones
Subject: Re: [Groff] integer size
Date: Mon, 29 Oct 2001 17:09:59 -0500 (EST)

Bernd Warken writes:
> 
> On Mon, Oct 29, 2001 at 09:16:05PM +0100, Ted Harding wrote:
> > 
> > Probably the simplest work-round for this -- if it really is a
> > worry -- is a conditional define
> > 
> >   #if sizeof(int) < 32
> >   define int long int
> >   #endif
> 
> It should be 32/8, but otherwise it is a good idea. I'll use a variation
> of this. Thank you.

If you need more than 16 bits, just use long and be done with it rather
than cluttering up the code with cute tricks like the above that can
break valid code (e.g., printf("%d", (int)f);).

-Larry Jones

Hmm... That might not be politic. -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]