X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "FYS" Newsgroups: comp.os.msdos.djgpp Subject: casting a pointer of a pointer Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <4PpD8.150757$v7.14044373@bin6.nnrp.aus1.giganews.com> NNTP-Posting-Date: Sun, 12 May 2002 03:35:12 CDT Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-5MeatYKp17FOz1ZNnmsrtv/UYukqI2yE4yHdS5IgPaB1tZvEu031SwGEQKjq+3OAj/iLW1XK19hN6+M!PIyzRY7z5wTGpzvK8tRMDS0ZgDASrs7vX4orix/4URJZk/TM4zhOZBnMXrT8VPipIKdW2AFfgiry!1eKHIBQ/hQR01ihUiG0= X-Complaints-To: abuse AT GigaNews DOT Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sun, 12 May 2002 08:35:12 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Everyone, It has been a little while :) I have been working on a project in MS VC. I try to make (this) project(s) as "portable" as I can so that other compilers (namely DJGPP :) can compile it too. However, I came across the following: In MS VC6.x and MS QC2.5, the following compiles as expected: unsigned short repcnt; unsigned char *li_s; // get the WORD at li_s repcnt = (unsigned short) (unsigned short *) *li_s; What I am trying to do is get the WORD at the BYTE PTR's location. In VC6.x and QC2.5, the above compiles and works as expected, but not in DGJPP. link.c:927: warning: cast to pointer from integer of different size link.c:927: warning: cast from pointer to integer of different size What is the DJGPP equivalent to the above code? Thanks, Ben -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Forever Young Software http://www.cybertrails.com/~fys/index.htm To reply by email, please remove the zzzzzz's Batteries not included, Some assembly required.