]> granicus.if.org Git - postgis/commitdiff
Changed return value of rt_pixtype_get_min_value() when pixel type is
authorBborie Park <bkpark at ucdavis.edu>
Wed, 4 Jul 2012 00:47:34 +0000 (00:47 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Wed, 4 Jul 2012 00:47:34 +0000 (00:47 +0000)
unknown

git-svn-id: http://svn.osgeo.org/postgis/trunk@10031 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index 1999d20655fede8c158a8a34a9dd1e900a8f2f0f..6603622fd61c4f72a17d1c07be29bb48ec70190c 100644 (file)
@@ -1064,7 +1064,7 @@ rt_pixtype_get_min_value(rt_pixtype pixtype) {
                }
                default: {
                        rterror("rt_pixtype_get_min_value: Unknown pixeltype %d", pixtype);
-                       return (double) CHAR_MIN;
+                       return (double) rt_util_clamp_to_8BUI((double) CHAR_MIN);
                }
        }
 }