X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_misc.c;fp=tfc_misc.c;h=57e6b2f67861e7cbd63d0f9c8383c22bebeba161;hb=a2ba0ca55c0bccf3695f9fdfacfbd991a2a73cf1;hp=06c1a653e7d6a3ac23047288f6e7224e15b83789;hpb=a874fa08a172c1d5006d15d05e494e1b9fbda211;p=tfcrypt.git diff --git a/tfc_misc.c b/tfc_misc.c index 06c1a65..57e6b2f 100644 --- a/tfc_misc.c +++ b/tfc_misc.c @@ -135,7 +135,7 @@ tfc_fsize tfc_fdgetpos(int fd) off_t t; t = lseek(fd, 0L, SEEK_CUR); - if (t == -1) return NOFSIZE; + if (t == (off_t)-1) return NOFSIZE; return (tfc_fsize)t; }