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 ())
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user