logo

utils-std

Collection of commonly available Unix tools
commit: 1e3f29258b0e0e1d1731cc535b764c94acff386e
parent 7f21a711471c9376d4fa97c13c7f4eac58accf12
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  2 Oct 2023 06:51:18 +0200

test-lib/strtodur.c: Fix types

Diffstat:

Mtest-lib/strtodur.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test-lib/strtodur.c b/test-lib/strtodur.c @@ -70,8 +70,8 @@ ATF_TC_BODY(pointone, tc) ATF_CHECK_EQ(0, strtodur(".1", &dur)); ATF_CHECK_EQ(0, dur.tv_sec); - int expect = 1000000000*0.1; - ATF_CHECK_EQ_MSG(expect, dur.tv_nsec, "dur.tv_nsec(%d) != %d", dur.tv_nsec, expect); + long expect = 1000000000*0.1; + ATF_CHECK_EQ_MSG(expect, dur.tv_nsec, "dur.tv_nsec(%ld) != %ld", dur.tv_nsec, expect); } ATF_TC(onepoint);