From 178a8217ba91b49e1cf568aff2689f3a4472d52b Mon Sep 17 00:00:00 2001 From: LiiNen Date: Wed, 29 May 2024 12:15:52 +0900 Subject: [PATCH] Fix bitops.c clang-format properly Signed-off-by: LiiNen --- src/bitops.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bitops.c b/src/bitops.c index 7a385812d0..2094bb0ea9 100644 --- a/src/bitops.c +++ b/src/bitops.c @@ -808,10 +808,9 @@ void bitcountCommand(client *c) { } } if (c->argc >= 4) { - if (getLongLongFromObjectOrReply(c,c->argv[3],&end,NULL) != C_OK) - return; + if (getLongLongFromObjectOrReply(c, c->argv[3], &end, NULL) != C_OK) return; } - + /* Lookup, check for type. */ o = lookupKeyRead(c->db, c->argv[1]); if (checkType(c, o, OBJ_STRING)) return; @@ -821,7 +820,7 @@ void bitcountCommand(client *c) { /* Make sure we will not overflow */ serverAssert(totlen <= LLONG_MAX >> 3); - if (c->argc < 4) end = totlen-1; + if (c->argc < 4) end = totlen - 1; /* Convert negative indexes */ if (start < 0 && end < 0 && start > end) {