Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66d6b4c

Browse files
committed
Fix for warnings-free compilation with Python 3.2
The first argument of PyEval_EvalCode() was changed from PyCodeObject*to PyObject* because of PEP 384.
1 parent497e65f commit66d6b4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,13 @@ PLy_procedure_call(PLyProcedure *proc, char *kargs, PyObject *vargs)
12201220
PyObject*rv;
12211221

12221222
PyDict_SetItemString(proc->globals,kargs,vargs);
1223+
#ifPY_VERSION_HEX >=0x03020000
1224+
rv=PyEval_EvalCode(proc->code,
1225+
proc->globals,proc->globals);
1226+
#else
12231227
rv=PyEval_EvalCode((PyCodeObject*)proc->code,
12241228
proc->globals,proc->globals);
1229+
#endif
12251230

12261231
/* If the Python code returned an error, propagate it */
12271232
if (rv==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp