BUG: Fix typo in dtype converter integer list.

This commit is contained in:
Stefan van der Walt
2011-09-26 17:12:14 -07:00
parent edfb8262ba
commit 5ec5c55b1a
+1 -1
View File
@@ -13,7 +13,7 @@ dtype_range = {np.uint8: (0, 255),
np.float32: (0, 1),
np.float64: (0, 1)}
integer_types = (np.uint8, np.int16, np.int8, np.int16)
integer_types = (np.uint8, np.uint16, np.int8, np.int16)
def _convert(image, dtype, prec_loss):
"""