X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: casting a pointer of a pointer Date: 13 May 2002 09:57:35 GMT Organization: Aachen University of Technology (RWTH) Lines: 14 Message-ID: References: <4PpD8.150757$v7 DOT 14044373 AT bin6 DOT nnrp DOT aus1 DOT giganews DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1021283855 18563 137.226.32.75 (13 May 2002 09:57:35 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 13 May 2002 09:57:35 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com FYS wrote: [...] > The > repcnt = (unsigned short) (* (unsigned short *) li_s); > works as expected. Just a small annotation: that outer case to (unsigned short) is superfluous. The result of dereferencing an (unsigned short *) already is an unsigned short. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.