[SciPy-user] weave: C-float argument does not accept python int value

Sebastian Haase haase at msg.ucsf.edu
Wed Aug 23 17:57:03 CDT 2006

I'm really excited about weave - it's great fun !
Now I get this error message:
  Conversion Error:, received 'int' type instead of 'float' for variable 'pz'

Apparently if I call my functions "f" like f(5)
but f was defined in C as: void f(double pz)
I get that error.

Did I understand this correct ?
And how could I specify a 
"converter"  so that a int gets "automagically" converted into a float !?

Thanks for weave,

Sebastian Haase

More information about the SciPy-user mailing list