summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorDavid Carlier <dcarlier@afilias.info>2020-01-28 12:53:32 (GMT)
committerPetr Viktorin <encukou@gmail.com>2020-01-28 12:53:32 (GMT)
commitaabdeb766b7fa581e7de01f3c953b12792f0736d (patch)
tree3ed6c4b6c00b8142775b9a996e84e3be383d3265 /Python/import.c
parent2cca8efe46935c39c445f585bce54954fad2485b (diff)
downloadcpython-aabdeb766b7fa581e7de01f3c953b12792f0736d.zip
cpython-aabdeb766b7fa581e7de01f3c953b12792f0736d.tar.gz
cpython-aabdeb766b7fa581e7de01f3c953b12792f0736d.tar.bz2
bpo-38960: DTrace build fix for FreeBSD. (GH-17451)
DTrace build fix for FreeBSD. - allowing passing an extra flag as it need to define the arch size. - casting some probe's arguments.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 045b6d0..2e5f783 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1762,14 +1762,14 @@ import_find_and_load(PyThreadState *tstate, PyObject *abs_name)
}
if (PyDTrace_IMPORT_FIND_LOAD_START_ENABLED())
- PyDTrace_IMPORT_FIND_LOAD_START(PyUnicode_AsUTF8(abs_name));
+ PyDTrace_IMPORT_FIND_LOAD_START((char *)PyUnicode_AsUTF8(abs_name));
mod = _PyObject_CallMethodIdObjArgs(interp->importlib,
&PyId__find_and_load, abs_name,
interp->import_func, NULL);
if (PyDTrace_IMPORT_FIND_LOAD_DONE_ENABLED())
- PyDTrace_IMPORT_FIND_LOAD_DONE(PyUnicode_AsUTF8(abs_name),
+ PyDTrace_IMPORT_FIND_LOAD_DONE((char *)PyUnicode_AsUTF8(abs_name),
mod != NULL);
if (import_time) {