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