diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-05-13 01:58:58 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-05-13 01:58:58 +0000 |
commit | 834d4dd20ea038e4bfd0dd7f9846d285c369cd5c (patch) | |
tree | b06d195287131798949b11ea33a9cefad119e959 /numpy/core/src/scalarmathmodule.c.src | |
parent | 7cd1911082f7c2a431cd8bee944ac0abc61c8f9b (diff) | |
download | numpy-834d4dd20ea038e4bfd0dd7f9846d285c369cd5c.tar.gz |
Fix up warnings.
Diffstat (limited to 'numpy/core/src/scalarmathmodule.c.src')
-rw-r--r-- | numpy/core/src/scalarmathmodule.c.src | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 2f4639c6a..643be746a 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -624,8 +624,8 @@ static PyObject * /* as a function call. */ #if @cmplx@ if (arg2.real == 0 && arg1.real == 0) { - out1.real = out.real = 1.0; - out1.imag = out.imag = 0.0; + out1.real = out.real = 1; + out1.imag = out.imag = 0; } #else if (arg2 == 0) { @@ -635,7 +635,7 @@ static PyObject * #if @isint@ else if (arg2 < 0) { @name@_ctype_power(arg1, -arg2, &out); - out1 = 1.0 / out; + out1 = (@otyp@) (1.0 / out); } #endif else { |