diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-08-06 15:23:50 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-08-06 15:25:38 +0100 |
commit | d01489255d8b5e1733ac1d664cbc1fbf206319e9 (patch) | |
tree | a0a40de3d7b5f0bdf797848e823b2652235cd272 | |
parent | afac1313514a34b47bd7f3f441c6ec0ef169fccc (diff) | |
download | ghostpdl-d01489255d8b5e1733ac1d664cbc1fbf206319e9.tar.gz |
Fix bug in param array coercion.
If we're going to autoconvert an int array to a float array,
make sure we label the final array as being floats, otherwise
we run the risk of converting it again!
-rw-r--r-- | base/gscparam.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/gscparam.c b/base/gscparam.c index 552acd20f..6fc65582a 100644 --- a/base/gscparam.c +++ b/base/gscparam.c @@ -526,6 +526,7 @@ c_param_read_typed(gs_param_list * plist, gs_param_name pkey, fa.data = (float *)pparam->alternate_typed_data; pvalue->value.fa = fa; + pvalue->type = req_type; return 0; } return code; |