I think that in pth_time.c in function pth_time_mul the line: t1->tv_usec = (t1->tv_usec & 1000000); should be: t1->tv_usec = (t1->tv_usec % 1000000); because I think the resulting usec would be the remainder of diving by 1000000 not the product of anding with 1000000. Attached is a patch for pth 1.3.6. The change shouldn't affect anything since the function is not actually used anywhere! Thanks, Tim
- Re: pth_time_mul() incorrect tim . harris
- Re: pth_time_mul() incorrect Ralf S. Engelschall