8000 Just need long, not long int · jrtkcoder/phpredis@433035d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 433035d

Browse files
Just need long, not long int
1 parent 4a37e47 commit 433035d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

library.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ redis_sock_read_scan_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
201201
REDIS_SCAN_TYPE type, long *iter)
202202
{
203203
REDIS_REPLY_TYPE reply_type;
204-
int reply_info;
204+
long reply_info;
205205
char *p_iter;
206206

207207
/* Our response should have two multibulk replies */
@@ -2138,8 +2138,8 @@ redis_sock_gets(RedisSock *redis_sock, char *buf, int buf_size,
21382138
}
21392139

21402140
PHP_REDIS_API int
2141-
redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type,
2142-
int *reply_info TSRMLS_DC)
2141+
redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type,
2142+
long *reply_info TSRMLS_DC)
21432143
{
21442144
// Make sure we haven't lost the connection, even trying to reconnect
21452145
if(-1 == redis_check_eof(redis_sock, 0 TSRMLS_CC)) {
@@ -2167,7 +2167,7 @@ redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type,
21672167
}
21682168

21692169
/* Set our size response */
2170-
*reply_info = atoi(inbuf);
2170+
*reply_info = atol(inbuf);
21712171
}
21722172

21732173
/* Success! */
@@ -2230,7 +2230,7 @@ PHP_REDIS_API int
22302230
redis_read_multibulk_recursive(RedisSock *redis_sock, int elements, zval **z_ret
22312231
TSRMLS_DC)
22322232
{
2233-
int reply_info;
2233+
long reply_info;
22342234
REDIS_REPLY_TYPE reply_type;
22352235
zval z_subelem, *z_subelem_p;
22362236
z_subelem_p = &z_subelem;
@@ -2291,7 +2291,7 @@ redis_read_variant_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
22912291
{
22922292
// Reply type, and reply size vars
22932293
REDIS_REPLY_TYPE reply_type;
2294-
int reply_info;
2294+
long reply_info;
22952295
//char *bulk_resp;
22962296
zval z_ret, *z_ret_p;
22972297
z_ret_p = &z_ret;

library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ PHP_REDIS_API int redis_sock_set_err(RedisSock *redis_sock, const char *msg, int
7676
* Variant Read methods, mostly to implement eval
7777
*/
7878

79-
PHP_REDIS_API int redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type, int *reply_info TSRMLS_DC);
79+
PHP_REDIS_API int redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type, long *reply_info TSRMLS_DC);
8080
PHP_REDIS_API int redis_read_variant_line(RedisSock *redis_sock, REDIS_REPLY_TYPE reply_type, zval **z_ret TSRMLS_DC);
8181
PHP_REDIS_API int redis_read_variant_bulk(RedisSock *redis_sock, int size, zval **z_ret TSRMLS_DC);
8282
PHP_REDIS_API int redis_read_multibulk_recursive(RedisSock *redis_sock, int elements, zval **z_ret TSRMLS_DC);

0 commit comments

Comments
 (0)
0