From: Sergey Kartashoff Date: Mon, 8 Dec 2003 08:24:59 +0000 (+0000) Subject: - A bug in Udm_Hash32 function was fixed. X-Git-Tag: php-4.3.5RC1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=112bc3df710734c80311f0789c30729156cd8e4c;p=php - A bug in Udm_Hash32 function was fixed. --- diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 171d2c8b53..dc48e1758f 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -1922,7 +1922,11 @@ DLEXPORT PHP_FUNCTION(udm_hash32) 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); }