aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-18 01:35:37 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-18 01:35:37 -0300
commit2b6553f1ee3a6975b7511d01826f5807c49c132d (patch)
tree09257aee999552c559e659fd33a7c15120b2cb22 /src/template-parser.c
parent64e772c1125acadad8167fd5fd25b380f333ab86 (diff)
downloadblogc-2b6553f1ee3a6975b7511d01826f5807c49c132d.tar.gz
blogc-2b6553f1ee3a6975b7511d01826f5807c49c132d.tar.bz2
blogc-2b6553f1ee3a6975b7511d01826f5807c49c132d.zip
renderer: implemented if statements
Diffstat (limited to 'src/template-parser.c')
-rw-r--r--src/template-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template-parser.c b/src/template-parser.c
index e1b1e56..8844b8f 100644
--- a/src/template-parser.c
+++ b/src/template-parser.c
@@ -399,7 +399,7 @@ blogc_template_parse(const char *src, size_t src_len, blogc_error_t **err)
else if (0 == strncmp("==", src + op_start, 2))
tmp_op = BLOGC_TEMPLATE_OP_EQ;
else if (0 == strncmp("!=", src + op_start, 2))
- tmp_op = BLOGC_TEMPLATE_OP_NOT | BLOGC_TEMPLATE_OP_EQ;
+ tmp_op = BLOGC_TEMPLATE_OP_NEQ;
}
if (tmp_op == 0) {
*err = blogc_error_parser(BLOGC_ERROR_TEMPLATE_PARSER,