🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: structures >64K

#7537
From: Ian D. Gay
Date: Fri, 08 Jan 1993 17:54
12 lines
947 bytes
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));
Technical Details
Message-ID: <gay.726515654@sfu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!gay
References: <1993Jan8.135612.14930@aau.dk> <1993Jan8.153555.21210@magnus.acs.ohio-state.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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