summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-07-28 16:21:39 +0800
committerchenzizhan <[email protected]>2023-07-28 16:21:39 +0800
commitf4f7a5c54041a396f2194cc2ab5d7d644f9f1e63 (patch)
treeac7e1e4af65662c2f36080114d272fdfd308d925
parent65064b627360b05d60cb054b2d54f8b8e922dc2b (diff)
ci test
-rw-r--r--vendors/hdr/hdr_encoding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendors/hdr/hdr_encoding.c b/vendors/hdr/hdr_encoding.c
index 7e04d9e..cd41f6c 100644
--- a/vendors/hdr/hdr_encoding.c
+++ b/vendors/hdr/hdr_encoding.c
@@ -16,8 +16,7 @@ int zig_zag_encode_i64(uint8_t* buffer, int64_t signed_value)
int bytesWritten;
int64_t value = signed_value;
-// cppcheck-suppress shiftTooManyBitsSigned
- value = (value << 1) ^ (value >> 63); // cppcheck-suppress[shiftTooManyBitsSigned]
+ value = (value << 1) ^ (value >> 63);
if (value >> 7 == 0)
{
buffer[0] = (uint8_t) value;