瀏覽代碼

Another C89 fix for MSVC.

tags/v0.5
Ben Kurtovic 7 年之前
父節點
當前提交
5a99597eb3
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      mwparserfromhell/parser/ctokenizer/tok_support.c

+ 2
- 2
mwparserfromhell/parser/ctokenizer/tok_support.c 查看文件

@@ -155,6 +155,7 @@ static int compare_nodes(
void* Tokenizer_fail_route(Tokenizer* self) void* Tokenizer_fail_route(Tokenizer* self)
{ {
uint64_t context = self->topstack->context; uint64_t context = self->topstack->context;
PyObject* stack;


route_tree_node *node = malloc(sizeof(route_tree_node)); route_tree_node *node = malloc(sizeof(route_tree_node));
if (node) { if (node) {
@@ -163,8 +164,7 @@ void* Tokenizer_fail_route(Tokenizer* self)
free(node); free(node);
} }


PyObject* stack = Tokenizer_pop(self);

stack = Tokenizer_pop(self);
Py_XDECREF(stack); Py_XDECREF(stack);
FAIL_ROUTE(context); FAIL_ROUTE(context);
return NULL; return NULL;


Loading…
取消
儲存