From: Andrey Rys Date: Sun, 28 Nov 2021 00:48:10 +0000 (+0100) Subject: fix time not casted to tfc_useconds incorrectly. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e0e605e37f6a5bd6ab8a19b490f579f8ba07eea6;p=tfcrypt.git fix time not casted to tfc_useconds incorrectly. --- 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)); }