Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 95 20:01:30 IST
From:      "Ugen J.S.Antsilevich" <ugen@netvision.net.il>
To:        freebsd-questions@freefall.cdrom.com, freebsd-current@freefall.cdrom.com
Subject:   GCC bug again...
Message-ID:  <Chameleon.950118200622.ugen@ugen.NetManage.co.il>

next in thread | raw e-mail | index | archive | help
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                            |   





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Chameleon.950118200622.ugen>