瀏覽代碼

Fix type.

tags/v0.2
Ben Kurtovic 12 年之前
父節點
當前提交
19e7c3b6ac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.c

+ 1
- 1
mwparserfromhell/parser/tokenizer.c 查看文件

@@ -1452,7 +1452,7 @@ init_tokenizer(void)
Py_DECREF(htmlentitydefs);

unsigned numdefs = (unsigned) PyDict_Size(defmap);
entitydefs = malloc(numdefs * sizeof(char));
entitydefs = malloc(numdefs * sizeof(char*));
PyObject* deflist = PyDict_Keys(defmap);
if (!deflist) return;
Py_DECREF(defmap);


Loading…
取消
儲存