[Rd] Polymarsall.c (PR#1044)

pleu@hotmail.com pleu@hotmail.com
Tue, 7 Aug 2001 22:42:08 +0200 (MET DST)

Full_Name: Paul Leu
Version: 1.2.3
OS: Windows NT
Submission from: (NULL) (

There is a bug in the polymars code.  

Line 655   m=m+k-1;

ought to be moved in front of the for loop in line 652 or else the levels array
will go out of bounds in the loop.

This does not seem to cause any errors in R, but caused crashes when I attempted
to link the file to PV-wave.  


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