From e0e605e37f6a5bd6ab8a19b490f579f8ba07eea6 Mon Sep 17 00:00:00 2001 From: Andrey Rys Date: Sun, 28 Nov 2021 01:48:10 +0100 Subject: [PATCH] fix time not casted to tfc_useconds incorrectly. --- VERSION | 2 +- tfc_misc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 87523dd..d81cc07 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -41 +42 diff --git a/tfc_misc.c b/tfc_misc.c index 57e6b2f..3bfd214 100644 --- a/tfc_misc.c +++ b/tfc_misc.c @@ -89,7 +89,7 @@ void tfc_getcurtime(tfc_useconds *tx) memset(&t, 0, sizeof(t)); gettimeofday(&t, NULL); - *tx = t.tv_sec * 1000000 + t.tv_usec; + *tx = (tfc_useconds)t.tv_sec * 1000000 + t.tv_usec; memset(&t, 0, sizeof(t)); } -- 2.31.1