aboutsummaryrefslogtreecommitdiff
path: root/Lib/octave/octcomplex.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/octave/octcomplex.swg')
-rw-r--r--Lib/octave/octcomplex.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/octave/octcomplex.swg b/Lib/octave/octcomplex.swg
index a3e9ebf77..553c25a3d 100644
--- a/Lib/octave/octcomplex.swg
+++ b/Lib/octave/octcomplex.swg
@@ -2,7 +2,7 @@
Defines the As/From conversors for double/float complex, you need to
provide complex Type, the Name you want to use in the conversors,
the complex Constructor method, and the Real and Imag complex
- accesor methods.
+ accessor methods.
See the std_complex.i and ccomplex.i for concrete examples.
*/
@@ -73,7 +73,7 @@
int res = SWIG_AddCast(SWIG_AsVal(float)(ov, &d));
if (SWIG_IsOK(res)) {
if (val)
- *val = Constructor(d, 0.0);
+ *val = Constructor(d, 0.0f);
return res;
}
}