diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-04-08 14:30:41 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-04-08 14:30:41 +0000 |
commit | e1430634c328270c0f4b6e6ef8f643cb0fe39d0b (patch) | |
tree | d2e03de4ecdc03eca779001f367a6d405ebf629b /gs/contrib | |
parent | 504308a39dcd4e05d16a25cac3e2b5f4b5da43b3 (diff) |
Make a table of 4 zeros be static const, and update the cast where they are
used to also be static const. This should remove them from the global variable
list in bug 691207.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11037 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/contrib')
-rw-r--r-- | gs/contrib/japanese/gdev10v.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/contrib/japanese/gdev10v.c b/gs/contrib/japanese/gdev10v.c index 21a3ab8e9..eeb3d72c3 100644 --- a/gs/contrib/japanese/gdev10v.c +++ b/gs/contrib/japanese/gdev10v.c @@ -225,7 +225,7 @@ bj10v_print_page(gx_device_printer *pdev, FILE *prn_stream) byte *outl, *outp; byte *zp; int count, bnum; - + /* Copy 1 scan line and test for all zero. */ code = gdev_prn_get_bits(pdev, lnum + blank_lines, in, NULL); if ( code < 0 ) goto xit; @@ -234,12 +234,12 @@ bj10v_print_page(gx_device_printer *pdev, FILE *prn_stream) /* them so badly that this code is faster. */ { register long *zip = (long *)in; register int zcnt = line_size; - static long zeroes[4] = { 0, 0, 0, 0 }; + static const long zeroes[4] = { 0, 0, 0, 0 }; for ( ; zcnt >= 4 * sizeof(long); zip += 4, zcnt -= 4 * sizeof(long) ) { if ( zip[0] | zip[1] | zip[2] | zip[3] ) goto notz; } - if ( !memcmp(in, (char *)zeroes, zcnt) ) + if ( !memcmp(in, (const char *)zeroes, zcnt) ) { /* Line is all zero, skip */ if (++blank_lines >= y_skip_unit) { lnum += y_skip_unit; |