Re: [Vala] GSL binding problem: OdeivEvolve::apply



Hi Yu,

You are right they should be ref doubles not arrays.
Here's the patch

diff --git a/vapi/gsl.vapi b/vapi/gsl.vapi
index 3ad9979..883c861 100644
--- a/vapi/gsl.vapi
+++ b/vapi/gsl.vapi
@@ -3514,7 +3514,7 @@ namespace Gsl
        
         [CCode (cname="gsl_odeiv_evolve_alloc")]
         public OdeivEvolve (size_t dim);
-        public int apply (OdeivControl con, OdeivStep step, OdeivSystem* dydt, [CCode (array_length = false)] double[] t, double t1, [CCode (array_length = false)] double[] h, [CCode (array_length = false)] double[] y);
+        public int apply (OdeivControl con, OdeivStep step, OdeivSystem* dydt, ref double t, double t1, ref double h, [CCode (array_length = false)] double[] y);
         public int reset ();
     }

Matias


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]