www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/13/07:15:05

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <abo2mf$i43$1@nets3.rz.RWTH-Aachen.DE>
References: <4PpD8.150757$v7 DOT 14044373 AT bin6 DOT nnrp DOT aus1 DOT giganews DOT com> <abls3b$1cmu$1 AT trip DOT net> <klAD8.29825$eV5 DOT 2975056 AT bin2 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 <zfysz AT cybertrails DOT com> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019