blob: 4aade28192dcea1f9e3ed0f137cc8e63a801ae50 (
plain)
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
40
41
42
43
44
|
diff -ur chktex/FindErrs.c chktex-src/FindErrs.c
--- chktex/FindErrs.c Sat Apr 27 02:28:46 2024
+++ chktex-src/FindErrs.c Wed Jun 12 17:25:32 2024
@@ -351,6 +351,7 @@
EscapePtr = TmpPtr; /* Save it for later */
while ((TmpPtr = strstr(TmpPtr, FileSuppDelim))) {
+ uint64_t errbit;
TmpPtr += STRLEN(FileSuppDelim);
error = atoi(TmpPtr);
@@ -358,7 +359,7 @@
{
PrintPrgErr(pmSuppTooHigh, error, MaxSuppressionBits);
}
- uint64_t errbit = ((uint64_t)1 << abs(error));
+ errbit = ((uint64_t)1 << abs(error));
if (error > 0)
{
*(uint64_t *)StkTop(&FileSuppStack) |= errbit;
@@ -1133,19 +1134,21 @@
* this on the first dash */
if (*TmpPtr != '-')
{
+ struct WordList *el;
/* PrePtr now points to the beginning of the hyphenated phrase */
PrePtr = ++TmpPtr;
- struct WordList *el = &DashExcpt;
+ el = &DashExcpt;
FORWL(i, *el)
{
+ int FoundHyphenDiff;
char *e = el->Stack.Data[i];
TmpPtr = PrePtr;
/* Walk through the strings until we find a
* mismatch. */
- int FoundHyphenDiff = FALSE;
+ FoundHyphenDiff = FALSE;
while (*e && *TmpPtr && *e == *TmpPtr)
{
/* Skip past characters that are the same */
|