php ext return unsigned hash code

pull/4/head
yuqing 2015-01-28 19:11:24 +08:00
parent 432bc613cf
commit 663abcdcf1
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Version 1.13 2015-01-22
Version 1.13 2015-01-28
* support php extension
* php extention export simple_hash and time33_hash

View File

@ -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);
}