summaryrefslogtreecommitdiff
path: root/devices/gdevpng.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-18 16:31:31 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-18 16:32:14 +0000
commit9bb42182c7637e11bc2939fb359ab79365594202 (patch)
tree4483cde486308c2807722e84a8f3bfccf26456fc /devices/gdevpng.c
parentc00965e4c05f08ec000303d53942e846187eed1a (diff)
downloadghostpdl-9bb42182c7637e11bc2939fb359ab79365594202.tar.gz
Update devices to return errors using return_error.
Diffstat (limited to 'devices/gdevpng.c')
-rw-r--r--devices/gdevpng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevpng.c b/devices/gdevpng.c
index f24f8bcd2..de08d4203 100644
--- a/devices/gdevpng.c
+++ b/devices/gdevpng.c
@@ -949,7 +949,7 @@ pngalpha_copy_alpha(gx_device * dev, const byte * data, int data_x,
alpha = row[sx];
break;
default:
- return gs_error_rangecheck;
+ return_error(gs_error_rangecheck);
}
if (alpha == 255) { /* Just write the new color. */
composite = color;