Revision: 434
http://rpy.svn.sourceforge.net/rpy/?rev=434&view=rev
Author: lgautier
Date: 2008-03-15 01:41:21 -0700 (Sat, 15 Mar 2008)
Log Message:
-----------
fixed wrong return type for VectorSexp_len in case of error
(generating a warning at compile time)
Modified Paths:
--------------
trunk/sandbox/rpy_nextgen/rpy/rinterface/rinterface.c
Modified: trunk/sandbox/rpy_nextgen/rpy/rinterface/rinterface.c
===================================================================
--- trunk/sandbox/rpy_nextgen/rpy/rinterface/rinterface.c 2008-03-15
08:38:25 UTC (rev 433)
+++ trunk/sandbox/rpy_nextgen/rpy/rinterface/rinterface.c 2008-03-15
08:41:21 UTC (rev 434)
@@ -658,7 +658,7 @@
SEXP sexp = ((SexpObject *)object)->sexp;
if (! sexp) {
PyErr_Format(PyExc_ValueError, "NULL SEXP.");
- return NULL;
+ return -1;
}
len = (Py_ssize_t)GET_LENGTH(sexp);
return len;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list