diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-07-07 02:51:18 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-07-07 02:51:18 +0000 |
commit | 48ba48254a8c90322408b15ac45d1f5ab8b5570c (patch) | |
tree | 9611bfb31ebf39deec9fdaa26ceebbc6dac32fd2 | |
parent | c76418144a540f726097912b55fe5ef96b01a882 (diff) | |
download | numpy-48ba48254a8c90322408b15ac45d1f5ab8b5570c.tar.gz |
Use 1 instead of 1.0, hopefully compiler will convert to correct float type.
-rw-r--r-- | numpy/core/src/umath/loops.c.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index 81e318cda..3b1b70a68 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -1110,13 +1110,13 @@ C@TYPE@_divide(char **args, intp *dimensions, intp *steps, void *NPY_UNUSED(func const @type@ in2i = ((@type@ *)ip2)[1]; if (fabs@c@(in2r) >= fabs@c@(in2i)) { const @type@ rat = in2i/in2r; - const @type@ scl = 1.0/(in2r + in2i*rat); + const @type@ scl = 1/(in2r + in2i*rat); ((@type@ *)op1)[0] = (in1r + in1i*rat)*scl; ((@type@ *)op1)[1] = (in1i - in1r*rat)*scl; } else { const @type@ rat = in2r/in2i; - const @type@ scl = 1.0/(in2i + in2r*rat); + const @type@ scl = 1/(in2i + in2r*rat); ((@type@ *)op1)[0] = (in1r*rat + in1i)*scl; ((@type@ *)op1)[1] = (in1i*rat - in1r)*scl; } |