home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11920 < prev    next >
Encoding:
Text File  |  1993-01-08  |  923 b   |  25 lines

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