| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -223,8 +223,10 @@ select_select(PyObject *self, PyObject *args) | |||
| 223 | 223 | return NULL; | |
| 224 | 224 | } | |
| 225 | 225 | else { | |
| 226 | - if (_PyTime_ObjectToTimeval(tout, &tv.tv_sec, &tv.tv_usec) == -1) | ||
| 226 | + long usec; | ||
| 227 | + if (_PyTime_ObjectToTimeval(tout, &tv.tv_sec, &usec) == -1) | ||
| 227 | 228 | return NULL; | |
| 229 | + tv.tv_usec = usec; | ||
| 228 | 230 | if (tv.tv_sec < 0) { | |
| 229 | 231 | PyErr_SetString(PyExc_ValueError, "timeout must be non-negative"); | |
| 230 | 232 | return NULL; | |
@@ -1837,7 +1839,7 @@ kqueue_queue_control(kqueue_queue_Object *self, PyObject *args) | |||
| 1837 | 1839 | PyObject *result = NULL; | |
| 1838 | 1840 | struct kevent *evl = NULL; | |
| 1839 | 1841 | struct kevent *chl = NULL; | |
| 1840 | - struct timespec timeoutspec; | ||
| 1842 | + struct timespec timeout; | ||
| 1841 | 1843 | struct timespec *ptimeoutspec; | |
| 1842 | 1844 | ||
| 1843 | 1845 | if (self->kqfd < 0) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments