Fix minor bug in the vhdl lexor

This commit is contained in:
Pawel Szostek 2011-06-27 12:36:50 +02:00 committed by Stephen Williams
parent bff0927db0
commit bdb851428a
1 changed files with 2 additions and 0 deletions

View File

@ -501,6 +501,7 @@ static char*make_bitstring_hex(int width_prefix, bool sflag, bool,
*rp-- = *sp;
if (rp >= res) *rp-- = *sp;
if (rp >= res) *rp-- = *sp;
if (rp >= res) *rp-- = *sp;
break;
}
if (rp < res)
@ -537,6 +538,7 @@ static char* make_bitstring_literal(const char*text)
width_prefix *= 10;
width_prefix += *cp - '0';
cp += 1;
--len;
}
} else {
width_prefix = -1;