httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject [apreq-2] apreq.c warning
Date Sun, 20 Apr 2003 04:18:23 GMT
The following diff:

===================================================
Index: apreq.c
===================================================================
RCS file: /home/cvspublic/httpd-apreq-2/src/apreq.c,v
retrieving revision 1.12
diff -u -r1.12 apreq.c
--- apreq.c	19 Apr 2003 09:42:08 -0000	1.12
+++ apreq.c	20 Apr 2003 04:02:32 -0000
@@ -166,11 +166,11 @@
 
 APREQ_DECLARE(long) apreq_atol(const char *s) 
 {
-    apr_int64_t n = 0;
+    long n = 0;
     char *p;
     if (s == NULL)
         return 0;
-    n = apr_strtoi64(s, &p, 0); /* XXX: what about overflow? */
+    n = (long) apr_strtoi64(s, &p, 0); /* XXX: what about overflow? */
 
     if (p == NULL)
         return n;
===============================================================
avoids warnings about a conversion from __int64 to long with 
VC++ on Win32.

-- 
best regards,
randy


Mime
View raw message