Skip to content

Commit 5ff62d9

Browse files
committed
Bug TPythonType.ReallocMethods. No need to increase size of PYT_METHOD_BUFFER_INCREASE etc.
1 parent db25e51 commit 5ff62d9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ interface
196196
{$IFDEF PYTHON37}
197197
COMPILED_FOR_PYTHON_VERSION_INDEX = 13;
198198
{$ENDIF}
199-
PYT_METHOD_BUFFER_INCREASE = 100;
200-
PYT_MEMBER_BUFFER_INCREASE = 100;
201-
PYT_GETSET_BUFFER_INCREASE = 100;
199+
PYT_METHOD_BUFFER_INCREASE = 10;
200+
PYT_MEMBER_BUFFER_INCREASE = 10;
201+
PYT_GETSET_BUFFER_INCREASE = 10;
202202

203203
METH_VARARGS = $0001;
204204
METH_KEYWORDS = $0002;
@@ -8260,7 +8260,6 @@ procedure TPythonType.ReallocMembers;
82608260
procedure TPythonType.ReallocMethods;
82618261
begin
82628262
inherited;
8263-
exit;
82648263
if tpfBaseType in TypeFlags then
82658264
FType.tp_methods := MethodsData;
82668265
end;
Binary file not shown.

0 commit comments

Comments
 (0)