From 0efd85e84105186bdea5cd43c715050668f2dfc4 Mon Sep 17 00:00:00 2001 From: hoijui Date: Fri, 10 Dec 2021 13:07:54 +0100 Subject: [PATCH 1/2] Fixes a warning about decl. and impl. differing --- src/access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/access.c b/src/access.c index 4ed7c1be3..db74658e9 100644 --- a/src/access.c +++ b/src/access.c @@ -889,7 +889,7 @@ static Bool CompareColors( const int rgbBG[3], const int rgbFG[3] ) * blue = 5. *********************************************************************/ -static Bool GetRgb( ctmbstr color, int rgb[] ) +static Bool GetRgb( ctmbstr color, int rgb[3] ) { uint x; From bbc76aeb37713f064b837a91b52d23c4a12a35b7 Mon Sep 17 00:00:00 2001 From: hoijui Date: Fri, 10 Dec 2021 13:09:01 +0100 Subject: [PATCH 2/2] Adds missing {} to else [fix] --- src/attrs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/attrs.c b/src/attrs.c index 324e205cc..bb33c119f 100644 --- a/src/attrs.c +++ b/src/attrs.c @@ -2297,9 +2297,10 @@ static void CheckDecimal( TidyDocImpl* doc, Node *node, AttVal *attval) { if (!hasPoint) hasPoint = yes; - else + else { TY_(ReportAttrError)( doc, node, attval, BAD_ATTRIBUTE_VALUE); break; + } } if (!TY_(IsDigit)(*p))