8000 Fix a macOS (M1) compiler warning. · phpredis/phpredis@7de29d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7de29d5

Browse files
Fix a macOS (M1) compiler warning.
1 parent 981c693 commit 7de29d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_sock)
31303130
}
31313131

31323132
gettimeofday(&tv, NULL);
3133-
persistent_id = strpprintf(0, "phpredis_%ld%ld", tv.tv_sec, tv.tv_usec);
3133+
persistent_id = strpprintf(0, "phpredis_%ld%ld", tv.tv_sec, (long)tv.tv_usec);
31343134
} else {
31353135
if (redis_sock->persistent_id) {
31363136
persistent_id = strpprintf(0, "phpredis:%s:%s", host, ZSTR_VAL(redis_sock->persistent_id));

0 commit comments

Comments
 (0)
0