[julia-users] Re: MethodError when passing a floating point argument through ccall

2014-07-29 Thread Alexander Darling
I can't believe it was that simple. Thank you so much! On Monday, July 28, 2014 10:16:21 PM UTC-7, Ivar Nesje wrote: It seems to me like the error is that you don't have a Julia method results = gillespie (rr, 0) that takes an Int as the second argument. the method you define only takes a

[julia-users] Re: MethodError when passing a floating point argument through ccall

2014-07-28 Thread Ivar Nesje
It seems to me like the error is that you don't have a Julia method results = gillespie (rr, 0) that takes an Int as the second argument. the method you define only takes a Float64, so you should probably call it with a Float64 as well. results = gillespie (rr, 0.) Also I would think that