Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2020-03-11 00:16:35 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2020-03-11 00:16:35 +0300
commit460c8f29239c263e15a093c9bcdb6fb24587ec7d (patch)
tree7e233e12264f99e6ec35f6c507808897f1b93421 /cluster_library.h
parent8c865686107954e9112203ab5d9a90f98442e396 (diff)
Various small changes in cluster_library
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/cluster_library.h b/cluster_library.h
index 784087eb..5d148b59 100644
--- a/cluster_library.h
+++ b/cluster_library.h
@@ -89,11 +89,7 @@
/* Helper to either return a bool value or add it to MULTI response */
#define CLUSTER_RETURN_BOOL(c, b) \
if(CLUSTER_IS_ATOMIC(c)) { \
- if(b==1) {\
- RETURN_TRUE; \
- } else {\
- RETURN_FALSE; \
- } \
+ RETURN_BOOL(b); \
} else { \
add_next_index_bool(&c->multi_resp, b); \
}