diff --git a/src/access.c b/src/access.c index 4ed7c1be..db74658e 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; diff --git a/src/attrs.c b/src/attrs.c index 324e205c..bb33c119 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))