Skip to content

Commit

Permalink
Attempt to fix Macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Oct 6, 2024
1 parent 56ab9d7 commit 3da8412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion picows/picows.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cdef extern from "picows_compat.h" nogil:
cdef ssize_t PICOWS_SOCKET_ERROR
int picows_get_errno()
double picows_get_monotonic_time()
ssize_t send(int sockfd, const void* buf, size_t len, int flags);
ssize_t send(int sockfd, const void* buf, size_t len, int flags)


class WSError(RuntimeError):
Expand Down
2 changes: 1 addition & 1 deletion picows/picows_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_sec + ts.tv_nsec / 1e9;
return (double)ts.tv_sec + (double)ts.tv_nsec / 1e9;
}
#endif

0 comments on commit 3da8412

Please sign in to comment.