From pgilbert@bank-banque-canada.ca  Thu Jun 25 16:01:22 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Thu, 25 Jun 1998 11:01:22 -0400
Subject: rbind(NULL, matrix("a", 5,3))
References: <98Jun24.125419edt.13441@mailgate.bank-banque-canada.ca>
 <x2u35aiicm.fsf@blueberry.kubism.ku.dk> <x2ogvi75gn.fsf@blueberry.kubism.ku.dk>
Message-ID: <98Jun25.112550edt.13441@mailgate.bank-banque-canada.ca>

>Fixed now.
>[In src/main/bind.c, just after line 913, insert
>                               if ( k == 0 )
>                                      mrows = 0;

I made this change, so the lines around 913 are now

     STRING(result)[i + n + (j * rows)] = STRING(u)[(i + j * mrows) % k];
    n += mrows;
                              if ( k == 0 )
                                       mrows = 0;
   }


and recompiled, but I still get the same problem:

> rbind(NULL, matrix("a", 5,3))
Arithmetic Exception - core dumped

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


rbind(NULL, matrix("a", 5,3))
Paul Gilbert