🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6603

BC++ 3.1 bug?

#6603
From: Adam Goldberg
Date: Fri, 20 Nov 1992 17:41
38 lines
1181 bytes
The following produces an interesting error:

#include <dos.h>
#include <mem.h>

void main(void)
{
   unsigned short far *ppm, *dest;

   if(NULL == (ppm = (unsigned short far *)farmalloc(1024)))
   {
      error message...
   }

   if(NULL == (dest = (unsigned short far *)farmalloc(1024)))
   {
      error message...
   }
 

This produces an error on the _second_ farmalloc(), "suspicious
pointer conversion". (not on the first...)

On the other hand, if I change the declaration line to:

   unsigned short far *ppm;
   unsigned short far *dest;

I get no such error.

Any ideas, or is this a real bug?


-- 
Adam G.
adamg@microware.com, or ...!uunet!mcrware!adamg
The above is not to be construed in any way as the official or unofficial
statements of Microware, or any Microware employees.
Technical Details
Message-ID: <1992Nov20.174122.2729@microware.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcrware!adam

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcrware!adam
From: adam@microware.com (Adam Goldberg)
Subject: BC++ 3.1 bug?
Message-ID: <1992Nov20.174122.2729@microware.com>
Sender: news@microware.com
Nntp-Posting-Host: ren
Organization: Microware Systems Corp., Des Moines, Iowa
Date: Fri, 20 Nov 1992 17:41:22 GMT
Lines: 38