gluke           Mon Dec  8 03:24:56 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/mnogosearch    php_mnogo.c 
  Log:
  - A bug in Udm_Hash32 function was fixed.
  
  
Index: php-src/ext/mnogosearch/php_mnogo.c
diff -u php-src/ext/mnogosearch/php_mnogo.c:1.66.2.10 
php-src/ext/mnogosearch/php_mnogo.c:1.66.2.11
--- php-src/ext/mnogosearch/php_mnogo.c:1.66.2.10       Wed Nov 12 02:52:56 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Mon Dec  8 03:24:55 2003
@@ -1,5 +1,5 @@
 /* $Source: /repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.66.2.10 2003/11/12 07:52:56 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.66.2.11 2003/12/08 08:24:55 gluke Exp $ */
 
 /*
    +----------------------------------------------------------------------+
@@ -1922,7 +1922,11 @@
        str = Z_STRVAL_PP(yystr);
 
        hash32=UdmHash32((str),strlen(str));
+#if UDM_VERSION_ID >= 30215
+       snprintf(buf,sizeof(buf)-1,"%i",hash32);
+#else
        snprintf(buf,sizeof(buf)-1,"%u",hash32);
+#endif
        
        RETURN_STRING(buf,1);
 }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to