From f9035eec706022cc8a10c70179c2c4f9f1a5ebad Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 12 May 2009 22:58:59 -0400 Subject: [PATCH] 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. --- src/parse.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/parse.cpp b/src/parse.cpp index bb5dbdc45..fed5f515b 100644 --- a/src/parse.cpp +++ b/src/parse.cpp @@ -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: