From 36d982f39b683d0266b9c6ff1e01cbfc94bd97f6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 Nov 2015 18:32:03 -0800 Subject: [PATCH] test-timespec: fix typo in previous change * tests/test-timespec.c (main): Fix typo that reduced test quality. --- ChangeLog | 3 +++ tests/test-timespec.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 82534cb478..b0385b7488 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-11-05 Paul Eggert + test-timespec: fix typo in previous change + * tests/test-timespec.c (main): Fix typo that reduced test quality. + timespec-sub: fix overflow bug; add tests * lib/timespec-add.c (timespec_add): * lib/timespec-sub.c (timespec_sub): diff --git a/tests/test-timespec.c b/tests/test-timespec.c index 839906cf37..20bbd0b985 100644 --- a/tests/test-timespec.c +++ b/tests/test-timespec.c @@ -144,7 +144,7 @@ main (void) for (k = 0; k < ntests; k++) { - struct timespec c = test[j]; + struct timespec c = test[k]; if (valid (c)) { struct timespec sumbc = timespec_add (b, c); -- 2.39.5