From b7c8216c12c939298ce712e449d746e1dbfa7aba Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on ChromeOS)" <rob@synchro.net>
Date: Mon, 13 Jan 2025 19:16:52 -0800
Subject: [PATCH] Fix typo in example code in comment causing uncrustify 0.80
 to assert

do_source_file: Parsing: sha1.c as language C
parse_cleanup(479): pc orig line is 257, orig col is 33, Text() is '}', type is BRACE_CLOSE
parse_cleanup(485): (frm.top().type + 1) is VBRACE_CLOSE
parse_cleanup(492): File: sha1.c, orig line is 257, orig col is 33, Error: Unexpected '}' for 'VBRACE_OPEN', which was on line 256
---
 src/hash/sha1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hash/sha1.c b/src/hash/sha1.c
index a9dc3a5e4c..9d8cd9552a 100644
--- a/src/hash/sha1.c
+++ b/src/hash/sha1.c
@@ -254,7 +254,8 @@ void SHA1Final(
         int j;
 
         for (j = 0; j < 4; t >>= 8, j++)
-            *--fcp = (uint8_t) t}
+            *--fcp = (uint8_t) t;
+    }
 #else
     for (i = 0; i < 8; i++)
     {
-- 
GitLab