Skip to content

Commit

Permalink
Merge pull request #613 from cole-miller/time-cast
Browse files Browse the repository at this point in the history
client/protocol: Ensure 64 bits for nanosecond calculations
  • Loading branch information
Mathieu Borderé committed Mar 4, 2024
2 parents b07c9ea + 0d74f3b commit 02b5adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static ssize_t doRead(int fd,
ssize_t total;
struct pollfd pfd;
struct timespec now;
long millis;
long long millis;
ssize_t n;
int rv;

Expand Down Expand Up @@ -206,7 +206,7 @@ static ssize_t doWrite(int fd,
ssize_t total;
struct pollfd pfd;
struct timespec now;
long millis;
long long millis;
ssize_t n;
int rv;

Expand Down

0 comments on commit 02b5adc

Please sign in to comment.