timespec: long-to-int truncation could make timespec_cmp malfunction
authorJim Meyering <meyering@redhat.com>
Thu, 29 Oct 2009 10:52:34 +0000 (11:52 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 29 Oct 2009 10:52:34 +0000 (11:52 +0100)
commit02a5d9ca15dc8e71fe8af9e76e732e01c90fc703
tree153e418f6390e90af0ca616fda253bdd95ea1e4a
parent739294f4aaa7734eb73bed785302dc64626c4ff1
timespec: long-to-int truncation could make timespec_cmp malfunction

* lib/timespec.h (timespec_cmp): Do not interpret a difference of
a multiple of 2^32 nanoseconds as no difference.
ChangeLog
lib/timespec.h