home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!gay
- From: gay@selkirk.sfu.ca (Ian D. Gay)
- Subject: Re: structures >64K
- Message-ID: <gay.726515654@sfu.ca>
- Keywords: struct, huge
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- References: <1993Jan8.135612.14930@aau.dk> <1993Jan8.153555.21210@magnus.acs.ohio-state.edu>
- Date: Fri, 8 Jan 1993 17:54:14 GMT
- Lines: 12
-
- hshulman@magnus.acs.ohio-state.edu (Harvey G Shulman) writes:
-
- >/* in the allocation statement I could not see why you used 20000L.
- > after all 20000 is 20000, isn't it? */
-
- NO! You want to be very sure that the following multiplication is done
- with longs! C does _not_ do 16x16 bit => 32 bit multiplication. Are
- you sure you really allocated as much memory as you thought?
-
-
-
- >yycrank = farmalloc(20000 * sizeof(yynew));
-