From 3be794e42c093b19f428444018091b6ae88c3e52 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Sat, 1 Oct 2016 22:01:09 +1000 Subject: [PATCH] Gmt module: Simplify code. --- modules/gmt/modgmt_strcomp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gmt/modgmt_strcomp.h b/modules/gmt/modgmt_strcomp.h index d075bd1..5b47e78 100644 --- a/modules/gmt/modgmt_strcomp.h +++ b/modules/gmt/modgmt_strcomp.h @@ -76,7 +76,7 @@ class TemplateComparator switch(b->type) { case(Block::TEXT): {res+=s.substr(b->b,b->e-b->b); break;} - case(Block::OPTIONAL): {b=b->child.get(); goto next;} + case(Block::OPTIONAL): case(Block::VARIANTS): {b=b->child.get(); goto next;} case(Block::DELIM): {b=b->parent; break;} default: {}