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:
@@ -330,11 +330,13 @@ static bool validSequence (
|
||||
switch (range.size ())
|
||||
{
|
||||
case 1:
|
||||
if (! validId (range[0]))
|
||||
return false;
|
||||
{
|
||||
if (! validId (range[0]))
|
||||
return false;
|
||||
|
||||
int id = ::atoi (range[0].c_str ());
|
||||
ids.push_back (id);
|
||||
int id = ::atoi (range[0].c_str ());
|
||||
ids.push_back (id);
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user