From fe186eee6f948ca4cae72bd49448bed98db5ffd4 Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Thu, 7 Aug 2025 12:49:49 +0300 Subject: [PATCH] os: use `/= 2` instead of `>>= 1` Compilers optimize the first one to the second one. Signed-off-by: stefan11111 --- os/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/io.c b/os/io.c index 5c57c7429..476435c3d 100644 --- a/os/io.c +++ b/os/io.c @@ -948,7 +948,7 @@ FlushClient(ClientPtr who, OsCommPtr oc) #ifdef EMSGSIZE /* check for another brain-damaged OS bug */ else if (errno == EMSGSIZE) { /* making separate try with half of the size */ - todo >>= 1; + todo /= 2; } #endif else {