From pleu@hotmail.com  Tue Aug  7 21:42:08 2001
From: pleu@hotmail.com (pleu@hotmail.com)
Date: Tue, 7 Aug 2001 22:42:08 +0200 (MET DST)
Subject: [Rd] Polymarsall.c (PR#1044)
Message-ID: <200108072042.WAA01762@pubhealth.ku.dk>

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


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.  

Paul

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Polymarsall.c (PR#1044)
pleu@hotmail.com