]> git.wincent.com - wikitext.git/blobdiff - ext/parser.c
Style fix
[wikitext.git] / ext / parser.c
index 9a5b79cc50d8b8e558c86fa27be04ce57fdf5b69..60c2d11507483ae490c65b912563113e9e1dbdff 100644 (file)
@@ -2576,7 +2576,7 @@ VALUE Wikitext_parser_parse(int argc, VALUE *argv, VALUE self)
                 // TODO: replace this with a different append function
                 str_grow(output, output->len + 8);
                 _Wikitext_append_entity_from_utf32_char(output->ptr + output->len, token->code_point);
                 // TODO: replace this with a different append function
                 str_grow(output, output->len + 8);
                 _Wikitext_append_entity_from_utf32_char(output->ptr + output->len, token->code_point);
-                output->len = output->len + 8;
+                output->len += 8;
                 break;
 
             case END_OF_FILE:
                 break;
 
             case END_OF_FILE: