bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Cvs-dev] Re: [Cvs-test-results] Build CVS (TRUNK) failed.


From: Mark D. Baushke
Subject: Re: [Cvs-dev] Re: [Cvs-test-results] Build CVS (TRUNK) failed.
Date: Thu, 15 Jun 2006 09:55:41 -0700

Hi Folks,

The CVS project found a need to add the following patch to
lib/strtoimax.c in order to get compilation on Windows to work.

The basic problem is that there is an __int64 type and three conversion
functions:

char * _i64toa(__int64, char *, int);
char * _ui64toa(unsigned __int64, char *, int);
__int64 _atoi64(const char *);

but 'long long' is NOT available.

This means that HAVE_LONG_LONG is not defined and intmax_t
is indeed __int64, so sizeof(INT) is greater than sizeof (long int).

If you agree that the patch is reasonable, please install it.

        Thanks,
        -- Mark

Index: strtoimax.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/lib/strtoimax.c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 strtoimax.c
--- strtoimax.c 12 Jun 2006 02:33:47 -0000      1.3
+++ strtoimax.c 15 Jun 2006 16:50:09 -0000
@@ -69,7 +69,7 @@ strtoimax (char const *ptr, char **endpt
   if (sizeof (INT) != sizeof (long int))
     return strtoll (ptr, endptr, base);
 #else
-  verify (sizeof (INT) >= sizeof (long int));
+  verify (sizeof (INT) == sizeof (long int));
 #endif
 
   return strtol (ptr, endptr, base);





reply via email to

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