FIX: issue sign loss warning only for signed type

This commit is contained in:
kuantkid
2012-09-10 13:22:38 +08:00
parent 07b258e208
commit 554487f9de
+2 -1
View File
@@ -152,7 +152,8 @@ def convert(image, dtype, force_copy=False, uniform=False):
if kind == 'b':
# to binary image
sign_loss()
if kind_in in "fi":
sign_loss()
prec_loss()
return dtype(image)