From owner-freebsd-questions Wed Jan 18 10:01:09 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id KAA10442 for questions-outgoing; Wed, 18 Jan 1995 10:01:09 -0800 Received: from NS.netvision.net.il (root@ns.NetVision.net.il [192.114.201.5]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id KAA10424; Wed, 18 Jan 1995 10:00:54 -0800 Received: from ugen.NetManage.co.il (ugen.netmanage.co.il [192.114.78.165]) by NS.netvision.net.il (8.6.9/8.6.9) with SMTP id UAA17550; Wed, 18 Jan 1995 20:00:37 +0200 Date: Wed, 18 Jan 95 20:01:30 IST From: "Ugen J.S.Antsilevich" Subject: GCC bug again... To: freebsd-questions@freefall.cdrom.com, freebsd-current@freefall.cdrom.com X-Mailer: Chameleon 4.00-Arm-25, TCP/IP for Windows, NetManage Inc. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk As you guys completely missed the point of what the bug is (probably it was my fault- i wrote too long and unclear mail) i repeat it in constructive way: 1) After those 2 types of lseek file pointer is set to wrong location. lseek(f,-sizeof(buf),SEEK_CUR) <--this is withno cast but must hold lseek(f,(off_t)-sizeof(buf),SEEK_CUR) <--this one has *RIGHT* cast 2) This one works and sets pointer to right location. lseek(f,(int)-sizeof(buf),SEEK_CUR) <--but the cast is completely wrong! That's the bug,now what would you say? -- -=Ugen J.S.Antsilevich=- NetVision - Israeli Commercial Internet | Learning E-mail: ugen@NetVision.net.il | To Fly. [c] Phone : +972-4-550330 |