X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_misc.c;h=3bfd214c1914163bf0019a4241e52eb11a035a8c;hb=c218fb98af0fbcba962101873756f76f66f4e4e9;hp=57e6b2f67861e7cbd63d0f9c8383c22bebeba161;hpb=a2ba0ca55c0bccf3695f9fdfacfbd991a2a73cf1;p=tfcrypt.git 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)); }