Article View: comp.os.msdos.programmer
Article #6603BC++ 3.1 bug?
From: Adam Goldberg
Date: Fri, 20 Nov 1992 17:41
Date: Fri, 20 Nov 1992 17:41
38 lines
1181 bytes
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!adamShow 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