Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Martin Morgan
On 10/24/2011 06:04 AM, Evarist Planet wrote: Dear mailing list, I have a C function that gives me a wrong result when I run it under Windows Hi Evarist -- It seems like this can be written reasonably efficiently in R? getEs <-function(fchr, sign) { nfchr <- length(fchr) nsign <- len

Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Thomas Lumley
On Mon, Oct 24, 2011 at 6:04 AM, Evarist Planet wrote: > Dear mailing list, > > I have a C function that gives me a wrong result when I run it under Windows > 7. The fact that you extract pointers to the contents of fchr and sign before coercing them to REALSXP is deeply suspicious to me, though