Bug Fix - C syntax error in parse.cpp

- Fixed bug where variable instantiation inside a case statement
  was not scoped, but somehow builds on Leopard, but fails on
  Fedora Core 10.  Thanks to Federico Hernandez.
This commit is contained in:
Paul Beckingham 2009-05-12 22:58:59 -04:00
parent cc5d44ee9d
commit f9035eec70

View file

@ -330,11 +330,13 @@ static bool validSequence (
switch (range.size ()) switch (range.size ())
{ {
case 1: case 1:
if (! validId (range[0])) {
return false; if (! validId (range[0]))
return false;
int id = ::atoi (range[0].c_str ()); int id = ::atoi (range[0].c_str ());
ids.push_back (id); ids.push_back (id);
}
break; break;
case 2: case 2: