home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: 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
-
- 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.
-