R-alpha: Re: Problem with gc()

Heiner Schwarte schwarte@feat.mathematik.uni-essen.de
Fri, 27 Jun 1997 20:46:40 +0100 (NFT)


Yesterday I posted a problem with logical() after a gc().

This problem occurs because do_makevector() in the file
builtin.c does not properly initialize the memory if a 
vector of logicals is manufactured. Simply adding an 
initialization  loop solves the problem. ( Following 
line 333 one finds  the initialization for INTSXP and 
REALSXP. Add one for LGLSXP.)

Heiner

  

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-