Skip to content

Commit c436194

Browse files
committed
Fix #2789 - rename local var to avoid clash with system include
1 parent 5adbadc commit c436194

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mongoose.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10935,10 +10935,10 @@ static void core_block(const uint32_t *restrict start,
1093510935
uint32_t *restrict output) {
1093610936
// instead of working on the output array,
1093710937
// we let the compiler allocate 16 local variables on the stack
10938-
#define __LV(i) uint32_t __s##i = start[i];
10938+
#define __LV(i) uint32_t __t##i = start[i];
1093910939
TIMES16(__LV)
1094010940

10941-
#define __Q(a, b, c, d) Qround(__s##a, __s##b, __s##c, __s##d)
10941+
#define __Q(a, b, c, d) Qround(__t##a, __t##b, __t##c, __t##d)
1094210942

1094310943
for (int i = 0; i < 10; i++) {
1094410944
__Q(0, 4, 8, 12);
@@ -10951,7 +10951,7 @@ static void core_block(const uint32_t *restrict start,
1095110951
__Q(3, 4, 9, 14);
1095210952
}
1095310953

10954-
#define __FIN(i) output[i] = start[i] + __s##i;
10954+
#define __FIN(i) output[i] = start[i] + __t##i;
1095510955
TIMES16(__FIN)
1095610956
}
1095710957

src/tls_chacha20.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ static void core_block(const uint32_t *restrict start,
154154
uint32_t *restrict output) {
155155
// instead of working on the output array,
156156
// we let the compiler allocate 16 local variables on the stack
157-
#define __LV(i) uint32_t __s##i = start[i];
157+
#define __LV(i) uint32_t __t##i = start[i];
158158
TIMES16(__LV)
159159

160-
#define __Q(a, b, c, d) Qround(__s##a, __s##b, __s##c, __s##d)
160+
#define __Q(a, b, c, d) Qround(__t##a, __t##b, __t##c, __t##d)
161161

162162
for (int i = 0; i < 10; i++) {
163163
__Q(0, 4, 8, 12);
@@ -170,7 +170,7 @@ static void core_block(const uint32_t *restrict start,
170170
__Q(3, 4, 9, 14);
171171
}
172172

173-
#define __FIN(i) output[i] = start[i] + __s##i;
173+
#define __FIN(i) output[i] = start[i] + __t##i;
174174
TIMES16(__FIN)
175175
}
176176

0 commit comments

Comments
 (0)