diff options
| author | Sergey Kartashoff <gluke@php.net> | 2003-12-08 08:24:59 +0000 |
|---|---|---|
| committer | Sergey Kartashoff <gluke@php.net> | 2003-12-08 08:24:59 +0000 |
| commit | 112bc3df710734c80311f0789c30729156cd8e4c (patch) | |
| tree | 09e9cb314927de6605a972773f92bf4683c3b240 | |
| parent | 318fc44c8a9fbb92707842f7644169f664ff383d (diff) | |
| download | php-git-112bc3df710734c80311f0789c30729156cd8e4c.tar.gz | |
- A bug in Udm_Hash32 function was fixed.
| -rw-r--r-- | ext/mnogosearch/php_mnogo.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
