View | Details | Raw Unified | Return to bug 244326
Collapse All | Expand All

(-)files/patch-libraries_libmbutil_parser.cc (+47 lines)
Line 0 Link Here
1
--- libraries/libmbutil/parser.cc.orig	2020-02-22 22:45:58 UTC
2
+++ libraries/libmbutil/parser.cc
3
@@ -46,7 +46,7 @@
4
 /* LowParser - begin */
5
 
6
 static int
7
-skip_remarks(HighParser& HP, InputStream& In, char &cIn)
8
+skip_remarks(HighParser& HP, InputStream& In, signed char &cIn)
9
 {
10
 skip_again:;
11
 	for (cIn = In.get(); isspace(cIn); cIn = In.get()) {
12
@@ -189,7 +189,7 @@ LowParser::Token
13
 LowParser::GetToken(InputStream& In)
14
 {
15
 	/* toglie gli spazi iniziali e tutti i commenti */
16
-	char cIn;
17
+	signed char cIn;
18
 	if (skip_remarks(HP, In, cIn)) {
19
 		return CurrToken = LowParser::ENDOFFILE;
20
 	}
21
@@ -845,7 +845,7 @@ HighParser::ParseWord(unsigned flags)
22
 	char* sBuf = sStringBuf;
23
 	char* sBufWithSpaces = sStringBufWithSpaces;
24
 
25
-	char cIn;
26
+	signed char cIn;
27
 	if (skip_remarks(*this, *pIn, cIn)) {
28
 		return CurrToken = HighParser::ENDOFFILE;
29
 	}
30
@@ -1212,7 +1212,7 @@ HighParser::IsStringWithDelims(enum Delims Del)
31
 	char cLdelim, cRdelim;
32
 	SetDelims(Del, cLdelim, cRdelim);
33
 
34
-	char cIn;
35
+	signed char cIn;
36
 	if (skip_remarks(*this, *pIn, cIn)) {
37
 		return false;
38
 	}
39
@@ -1242,7 +1242,7 @@ HighParser::GetStringWithDelims(enum Delims Del, bool 
40
 	char cLdelim, cRdelim;
41
 	SetDelims(Del, cLdelim, cRdelim);
42
 
43
-	char cIn;
44
+	signed char cIn;
45
 	if (skip_remarks(*this, *pIn, cIn)) {
46
 		return NULL;
47
 	}

Return to bug 244326