From b803d1ac820b343b64fcd2cbfeb6f5fc618658d2 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 21 Sep 2026 09:24:45 +0800 Subject: [PATCH] Logo (Image): tidy --- src/logo/image/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logo/image/image.c b/src/logo/image/image.c index 24ae2da16..33fefec9d 100644 --- a/src/logo/image/image.c +++ b/src/logo/image/image.c @@ -1246,7 +1246,7 @@ static uint32_t getKittyImageId(void) { id ^= (uint32_t) getpid() * 2654435761u; id ^= (uint32_t) ((uintptr_t) &id >> 4); id &= 0xFFFFFF; - return id != 0 ? id : 1; + return id ?: 1; } // The envelope, per the kitty protocol: the root frame is transmitted with `a=T` and has no gap