summaryrefslogtreecommitdiff
path: root/ext/mnogosearch/php_mnogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
-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);
}