[R] fexact.c

Ramon Diaz rdiaz at cnio.es
Tue Nov 19 19:03:17 CET 2002

Dear All,

I am using fexact.c on a C++ program I wrote. To minimize dependencies on 
other files (e.g., to not need to include R.h and ctest.h ---now I only 
include the R files Boolean.h, Constants.h, and Memory.h), I have re-written 
all declarations of Sints as ints and, what is potentially more serious, I 
have re-written the line (lines 329 and 330, in fexact.c on R-1.6.1) 

 /* IMAX is the largest representable Sint on the machine. */
    const Sint imax = SINT_MAX;


    const Sint imax =  2147483647;

I have checked the program on an Intel machine (running Linux and compiled 
with gcc) and on an SGI machine running Irix 5.6 (compiled with gcc and, I 
think, using 32 bits), and so far all results are OK. However, I wonder if I 
am likely to run into problems because of my sloppy hack.


Ramón Díaz-Uriarte
Unidad de Bioinformática
Centro Nacional de Investigaciones Oncológicas (CNIO)
Melchor Fernández Almagro, 3
28029 Madrid (Spain)

r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list