From: Bborie Park Date: Wed, 4 Jul 2012 00:47:34 +0000 (+0000) Subject: Changed return value of rt_pixtype_get_min_value() when pixel type is X-Git-Tag: 2.1.0beta2~821 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4a25b3e60f8214750e54f503628f02dcf6f8e70;p=postgis Changed return value of rt_pixtype_get_min_value() when pixel type is unknown git-svn-id: http://svn.osgeo.org/postgis/trunk@10031 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index 1999d2065..6603622fd 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -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); } } }