bug-cvs
[Top][All Lists]
Advanced

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

Re: CVS, Cygwin and 'long long'


From: Derek R. Price
Subject: Re: CVS, Cygwin and 'long long'
Date: Wed, 07 Jun 2006 17:58:22 -0400
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So, am I gathering correctly that your VSS provides a 64 bit uintmax_t
and no function to convert a string into it?

Jim Hyslop wrote:
> The error I'm getting is at this line: verify (sizeof (INT) ==
> sizeof (long int));
>
> Basically, this line is a compile-time check of the sizes. INT
> boils down to a typedef of __int64, whereas a long is only 32 bits.
>
>
> Here's the whole function from strtoimax.c:
>
> INT strtoimax (char const *ptr, char **endptr, int base) { #if
> HAVE_LONG_LONG verify (sizeof (INT) == sizeof (long int) || sizeof
> (INT) == sizeof (long long int));
>
> if (sizeof (INT) != sizeof (long int)) return strtoll (ptr, endptr,
> base); #else verify (sizeof (INT) == sizeof (long int)); #endif
>
> return strtol (ptr, endptr, base); }

- --
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:derek@ximbiot.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEh0v+LD1OTBfyMaQRAuLhAKCPKrYPsiCYZvWYUuO53qoxhUY0ewCffzF1
7ezGiQA97QWIPWgTp0OoBfI=
=0xFj
-----END PGP SIGNATURE-----






reply via email to

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