File: 1007_bool_meant_to_be_int.patch

package info (click to toggle)
ghostscript 10.06.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96,296 kB
  • sloc: ansic: 944,438; python: 7,917; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 538; awk: 66; yacc: 18
file content (23 lines) | stat: -rw-r--r-- 607 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- ghostscript.orig/base/gxshade4.h
+++ ghostscript/base/gxshade4.h
@@ -88,7 +88,7 @@
 struct wedge_vertex_list_elem_s {
     gs_fixed_point p;
     int level;
-    bool divide_count;
+    int divide_count;
     wedge_vertex_list_elem_t *next, *prev;
 };
 typedef struct {
--- ghostscript.orig/base/gsdevice.c
+++ ghostscript/base/gsdevice.c
@@ -1072,7 +1072,8 @@
 static int
 gx_parse_output_format(gs_parsed_file_name_t *pfn, const char **pfmt)
 {
-    bool have_format = false, field;
+    bool have_format = false;
+    int field;
     uint width[2], int_width = sizeof(int) * 3, w = 0;
     uint i;