summaryrefslogtreecommitdiff
path: root/ext/mnogosearch
diff options
context:
space:
mode:
authorSergey Kartashoff <gluke@php.net>2003-12-08 08:12:34 +0000
committerSergey Kartashoff <gluke@php.net>2003-12-08 08:12:34 +0000
commit1a898490aeba8028b871ef61dcfda87bed52cf3b (patch)
tree08de3b89027a96bcd9bc791561a7fd556836cc97 /ext/mnogosearch
parented2fd39d0a6c69c9c7019f0f811f9b5392dfe4bf (diff)
downloadphp-git-1a898490aeba8028b871ef61dcfda87bed52cf3b.tar.gz
- A bug in Udm_Hash32 function was fixed.
Diffstat (limited to 'ext/mnogosearch')
-rw-r--r--ext/mnogosearch/php_mnogo.c4
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);
}