From 3328ee63967cbcb858f9ba081efe5de0459ed27a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 23 Oct 2013 19:46:31 +0200 Subject: python/arfile.cc: (C++11) Explicitly cast unsigned long to time_t in {} According to gcc, the expression would be ill-formed in C++11 otherwise. --- python/arfile.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/arfile.cc') diff --git a/python/arfile.cc b/python/arfile.cc index 50cd1246..8f45e658 100644 --- a/python/arfile.cc +++ b/python/arfile.cc @@ -232,7 +232,8 @@ static PyObject *_extract(FileFd &Fd, const ARArchive::Member *member, return PyErr_SetFromErrnoWithFilename(PyExc_OSError, outfile); size -= read; } - utimbuf time = {member->MTime, member->MTime}; + utimbuf time = {static_cast(member->MTime), + static_cast(member->MTime)}; if (utime(outfile,&time) == -1) return PyErr_SetFromErrnoWithFilename(PyExc_OSError, outfile); Py_RETURN_TRUE; -- cgit v1.2.3