[mapserver-commits] r12276 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:13:09 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:13:09 -0700 (Fri, 26 Aug 2011)
New Revision: 12276

Modified:
   trunk/mapserver/mapcache/src/lock.c
Log:
comment unimplemented function
thomas.bonfort | 2011-01-21 08:39:01 +0100 (Fri, 21 Jan 2011)

Modified: trunk/mapserver/mapcache/src/lock.c
===================================================================
--- trunk/mapserver/mapcache/src/lock.c	2011-08-26 11:13:05 UTC (rev 12275)
+++ trunk/mapserver/mapcache/src/lock.c	2011-08-26 11:13:09 UTC (rev 12276)
@@ -30,8 +30,13 @@
 
 static char* num_encode(apr_pool_t *pool, int num) {
    int n = num,r;
-   int i = 0;
-   char *ret = apr_pcalloc(pool,10); /* allocate 10 chars, should be amply sufficient */
+   int i = 0
+   /* allocate 10 chars, should be amply sufficient:
+    * yes, this *really* should be amply sufficient:
+    * 10 chars, in 63 base = 10^63 different values.
+    * the earth is 40000km wide, which means we will start having
+    * a problem if a tile is less than 40000 * 1000 / 10^63 = 4e-56 meters wide*/;
+   char *ret = apr_pcalloc(pool,10); 
    while(1) {
       r = n % encbase;
       n = n / encbase;



More information about the mapserver-commits mailing list