twitter-archive / torch-ipc

A set of primitives for parallel computation in Torch
Apache License 2.0
95 stars 28 forks source link

variable t must be of type time_t #25

Closed motus closed 7 years ago

motus commented 8 years ago

time_t can be defined as signed int on some platforms (e.g. my 32-bit ubuntu 14.04 with libc 2.19 and gcc 4.8.4), generating compilation error when being compared with uint32_t.

It would be more correct to define t the same type as tv.tv_sec, i.e. time_t.

clementfarabet commented 7 years ago

Thanks!