fix time not casted to tfc_useconds incorrectly.
authorAndrey Rys <rys@lynxlynx.ru>
Sun, 28 Nov 2021 00:48:10 +0000 (01:48 +0100)
committerAndrey Rys <rys@lynxlynx.ru>
Sun, 28 Nov 2021 00:48:10 +0000 (01:48 +0100)
VERSION
tfc_misc.c

diff --git a/VERSION b/VERSION
index 87523dd7a0632907d61799465827c3f08825fa47..d81cc0710eb6cf9efd5b920a8453e1e07157b6cd 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-41
+42
index 57e6b2f67861e7cbd63d0f9c8383c22bebeba161..3bfd214c1914163bf0019a4241e52eb11a035a8c 100644 (file)
@@ -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));
 }