Date: Sun, 22 Aug 1999 13:44:18 -0700 (PDT) From: <hoek@FreeBSD.org> To: jin@iss-p2.lbl.gov, hoek@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: pending/12876: incorrect off_t value range / causing lseek failure? Message-ID: <199908222044.NAA80123@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: incorrect off_t value range / causing lseek failure? State-Changed-From-To: open->closed State-Changed-By: hoek State-Changed-When: Sun Aug 22 13:22:41 PDT 1999 State-Changed-Why: You can't write off_t lret = 5 + (1<<33); You must write off_t lret = 5 + ((off_t)1<<33); If you change your sample program appropriately, it appears to work as expected. My interpretation of this is that the reason lseek() did not work for you is due to the incorrect lack of a necessary cast somewhere. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: hoek Responsible-Changed-When: Sun Aug 22 13:22:41 PDT 1999 Responsible-Changed-Why: Misfiled PR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908222044.NAA80123>