View | Details | Raw Unified | Return to bug 240817
Collapse All | Expand All

(-)files/patch-types.sip (+18 lines)
Line 0 Link Here
1
--- types.sip.orig	2019-09-18 15:22:50 UTC
2
+++ types.sip
3
@@ -266,13 +266,13 @@ template <TYPE>
4
 
5
     if (sipPy == Py_None)
6
     {
7
-        *sipCppPtr = new long();
8
+        *sipCppPtr = new time_t();
9
         return 1;
10
     }
11
 
12
     if (PyLong_Check(sipPy))
13
     {
14
-        *sipCppPtr = new long(PyLong_AsLong(sipPy)); 
15
+        *sipCppPtr = new time_t(PyLong_AsLong(sipPy));
16
         return 1;
17
     }
18
     return 0;

Return to bug 240817