diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SimpleMustache.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc index c7cbee4..e87d08d 100644 --- a/src/SimpleMustache.cc +++ b/src/SimpleMustache.cc @@ -353,7 +353,7 @@ Balau::SimpleMustache::Fragments::iterator Balau::SimpleMustache::render_r(IO<Ha return end; for (cur = begin; cur != end; cur++) { Fragment * fr = *cur; - if(fr->type == Fragment::STRING); + if(fr->type == Fragment::STRING) h->write(fr->str); } return end; @@ -408,6 +408,9 @@ Balau::SimpleMustache::Fragments::iterator Balau::SimpleMustache::render_r(IO<Ha case Fragment::INVERTED: cur = render_r(h, NULL, fr->str, ++cur, sCtx->find(fr->str) != sCtx->end(), -1); break; + default: + Assert(false); + break; } } } |