[PATCH 1/1] Fix unsigned time_t comparison

2013-02-25 Thread Mike Gorchak
Do not compare time_t (less comparison) with -1. If time_t is unsigned this leads to always true comparison. Signed-off-by: Mike Gorchak --- date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date.c b/date.c index 57331ed..1ac28e5 100644 --- a/date.c +++ b/date.c @@ -383,

Re: [PATCH 1/1] Fix unsigned time_t comparison

2013-02-25 Thread Junio C Hamano
Mike Gorchak writes: > Do not compare time_t (less comparison) with -1. If time_t > is unsigned this leads to always true comparison. > > Signed-off-by: Mike Gorchak > --- > date.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/date.c b/date.c > index 57331ed..1ac28e5

Re: [PATCH 1/1] Fix unsigned time_t comparison

2013-02-25 Thread Junio C Hamano
Mike Gorchak writes: > Do not compare time_t (less comparison) with -1. If time_t > is unsigned this leads to always true comparison. > > Signed-off-by: Mike Gorchak > --- > date.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/date.c b/date.c > index 57331ed..1ac28e5