commit e172a54f741c15f19a7a9df39c75a301ab784a80
parent c484ab23ccfb44b48143d8dd77e8f281ba8b012b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 5 Oct 2015 16:43:08 +0200
Fix elif()
Elif() calls to cppif() to test the condition, but cppif()
increments the cpp context, which must not be incremented
because the else part of elif should already decrement it.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cc1/cpp.c b/cc1/cpp.c
@@ -635,6 +635,7 @@ static void
elif(void)
{
elseclause();
+ --cppctx;
cppif();
}