提交 663abcdc 编写于 作者: Y yuqing

php ext return unsigned hash code

上级 432bc613
Version 1.13 2015-01-22
Version 1.13 2015-01-28
* support php extension
* php extention export simple_hash and time33_hash
......
......@@ -207,7 +207,7 @@ ZEND_FUNCTION(fastcommon_time33_hash)
RETURN_BOOL(false);
}
RETURN_LONG(Time33Hash(str, str_len));
RETURN_LONG(Time33Hash(str, str_len) & 0x7FFFFFFF);
}
/*
......@@ -237,6 +237,6 @@ ZEND_FUNCTION(fastcommon_simple_hash)
RETURN_BOOL(false);
}
RETURN_LONG(simple_hash(str, str_len));
RETURN_LONG(simple_hash(str, str_len) & 0x7FFFFFFF);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册