unittest fix

This commit is contained in:
gazer 2016-01-27 04:12:23 +03:00
parent 3ba090d4cb
commit 1a5acd01e7
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ private bool parseColor(ref string src, ref CssValue value)
// #rgb or #rrggbb colors
ch = src.skip;
int nDigits = 0;
for ( ; nDigits < src.length && parseHexDigit(src[nDigits])>=0; nDigits++ ) {
for ( ; nDigits < src.length && parseHexDigit(src[nDigits]) != uint.max; nDigits++ ) {
}
if ( nDigits==3 ) {
int r = parseHexDigit( src[0] );