Browse Source

A few tweaks; py3k support now complete.

tags/v0.3
Ben Kurtovic 10 years ago
parent
commit
5e8e050ca3
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      mwparserfromhell/parser/tokenizer.c

+ 1
- 2
mwparserfromhell/parser/tokenizer.c View File

@@ -1017,7 +1017,7 @@ static int Tokenizer_really_parse_entity(Tokenizer* self)
self->head++;
continue;
}
if (i >= 8)
if (i >= MAX_ENTITY_SIZE)
FAIL_ROUTE_AND_EXIT()
for (j = 0; j < NUM_MARKERS; j++) {
if (this == *MARKERS[j])
@@ -2332,7 +2332,6 @@ static int load_entitydefs(void)
if (!string)
return -1;
entitydefs[i] = PyBytes_AsString(string);
Py_DECREF(string);
#else
entitydefs[i] = PyBytes_AsString(PyList_GET_ITEM(deflist, i));
#endif


Loading…
Cancel
Save