summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorThomas Robitaille <thomas.robitaille@gmail.com>2015-07-27 21:49:30 +0200
committerThomas Robitaille <thomas.robitaille@gmail.com>2015-07-27 23:31:28 +0200
commitc49821c55b45574cd7d5300ddd4a83f12fcaa7e0 (patch)
treeea07d40904f1309d7a8a34de3caac09d48be0dcf /numpy/lib/function_base.py
parent9232200cb99323730d5ad23c79a846649b55a345 (diff)
downloadnumpy-c49821c55b45574cd7d5300ddd4a83f12fcaa7e0.tar.gz
BUG: fixed regression in np.histogram which caused input floating-point values to be modified
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 5a442240e..19040807b 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -232,7 +232,7 @@ def histogram(a, bins=10, range=None, normed=False, weights=None,
tmp_a = tmp_a[keep]
if tmp_w is not None:
tmp_w = tmp_w[keep]
- tmp_a = np.array(tmp_a, dtype=float, copy=False)
+ tmp_a = tmp_a.astype(float)
tmp_a -= mn
tmp_a *= norm