From 7e842918339cdbb3e2c66dd80334a4b6e3cb86e2 Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Fri, 1 Aug 2025 09:31:16 -0700 Subject: [PATCH] bugfix: need to parse the cache limits. --- pywikidiff2/pywikidiff2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywikidiff2/pywikidiff2.cpp b/pywikidiff2/pywikidiff2.cpp index f986a86..d2286bd 100644 --- a/pywikidiff2/pywikidiff2.cpp +++ b/pywikidiff2/pywikidiff2.cpp @@ -45,7 +45,7 @@ pywikidiff2_init(pywikidiff2Obj *self, PyObject *args, PyObject *kwds) { // here's where we set non-default configuration values static char *kwlist[] = {"num_context_lines", "moved_line_threshold", "change_threshold", "moved_paragraph_detection_cutoff", "max_word_level_diff_complexity", "max_split_size", "initial_split_threshold", "final_split_threshold", "words_cache_capacity", "diff_cache_capacity", "stats_cache_capacity", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iffiiiff", kwlist, + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iffiiiffiii", kwlist, &self->config.numContextLines, &self->config.movedLineThreshold, &self->config.changeThreshold,