Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fdefc2

Browse files
committed
atoll vs _atoi64
1 parent 00be281 commit 1fdefc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library.c

+4
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,11 @@ PHPAPI void redis_long_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_s
906906
}
907907

908908
if(response[0] == ':') {
909+
#ifdef PHP_WIN32
910+
__int64 ret = _atoi64(response + 1);
911+
#else
909912
long long ret = atoll(response + 1);
913+
#endif
910914
IF_MULTI_OR_PIPELINE() {
911915
if(ret > LONG_MAX) { /* overflow */
912916
add_next_index_stringl(z_tab, response+1, response_len-1, 1);

0 commit comments

Comments
 (0)