From ceeb2127eff133d9db62db69396c3ed625e56afb Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Tue, 21 Apr 2026 06:34:06 +0200
Subject: [PATCH] tiny_jpeg.h: Fix left shift int UB warning
(cherry picked from commit 5abcc776a8edeaf62e225992439f14eaddb45ef5)
---
src/tiny_jpeg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tiny_jpeg.h b/src/tiny_jpeg.h
index 27f5566b8..2272f2a43 100644
--- a/src/tiny_jpeg.h
+++ b/src/tiny_jpeg.h
@@ -628,7 +628,7 @@ TJEI_FORCE_INLINE void tjei_write_bits(TJEState* state,
// Push the stack.
uint32_t nloc = *location + num_bits;
- *bitbuffer |= (uint32_t)(bits << (32 - nloc));
+ *bitbuffer |= (uint32_t)bits << (32 - nloc);
*location = nloc;
while ( *location >= 8 ) {
// Grab the most significant byte.