From 7542d8d03d31373d55acc2e232ef15aa26bec89f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 8 Aug 2011 14:34:11 +0200 Subject: s4:pyglue: PyArg_ParseTuple("I") requires an 'unsigned int' argument If we pass variable references we don't get implicit casting! metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Mon Aug 8 18:01:19 CEST 2011 on sn-devel-104 --- source4/scripting/python/pyglue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/pyglue.c b/source4/scripting/python/pyglue.c index 8a82f3502a..cc312ba068 100644 --- a/source4/scripting/python/pyglue.c +++ b/source4/scripting/python/pyglue.c @@ -63,9 +63,13 @@ static PyObject *py_generate_random_password(PyObject *self, PyObject *args) static PyObject *py_unix2nttime(PyObject *self, PyObject *args) { time_t t; + unsigned int _t; NTTIME nt; - if (!PyArg_ParseTuple(args, "I", &t)) + + if (!PyArg_ParseTuple(args, "I", &_t)) { return NULL; + } + t = _t; unix_to_nt_time(&nt, t); -- cgit