File: 03_comparison_always_false.diff

package info (click to toggle)
vflib3 3.7.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,688 kB
  • sloc: ansic: 37,305; sh: 11,975; makefile: 915; lisp: 123; perl: 109; awk: 43
file content (39 lines) | stat: -rw-r--r-- 1,300 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_comparison_always_false.dpatch by Matej Vela <vela@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix `comparison is always false' warnings on platforms where char
## DP: is unsigned by default (this might lead to infinite loops).

@DPATCH@
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -696,7 +696,7 @@ file_stream_unget_char(SEXP_STREAM strea
 
 
 static int  vf_sexp_do_read_from_stream(SEXP_STREAM stream, SEXP sexp);
-static int  vf_sexp_read_str(SEXP_STREAM stream, char ch, SEXP sexp);
+static int  vf_sexp_read_str(SEXP_STREAM stream, int ch, SEXP sexp);
 static int  vf_sexp_skip(SEXP_STREAM stream);
 static char vf_get_char_esc(char **pp, SEXP_STREAM stream);
 #define  NBUFFER_MIN    2*1024
@@ -776,7 +776,7 @@ vf_sexp_do_read_from_stream(SEXP_STREAM
 }
 
 static int
-vf_sexp_read_str(SEXP_STREAM stream, char ch, SEXP s)
+vf_sexp_read_str(SEXP_STREAM stream, int ch, SEXP s)
 {
   char         tmp[8];
   int          ch1, dq_str; 
--- a/utils/vflx11-2.0.2/vflx11.c
+++ b/utils/vflx11-2.0.2/vflx11.c
@@ -633,7 +633,7 @@ void Win_PutBitmap(bm, x, y, cw, ch)
   free(xbitmap);
 }
 
-void Win_ChangeSize(w, h)
+void Win_ChangeSize(int w, int h)
 {
   WinX = w + WIN_BORDER * 2;
   WinY = h + WIN_BORDER * 2;