Skip to content

Commit e9d3230

Browse files
committed
fix assertions
1 parent a0ab1c2 commit e9d3230

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/_ssl.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,12 @@ ssl_error_lineno_width(int lineno)
546546
if (lineno < 0) {
547547
return 1 + ssl_error_lineno_width(-lineno);
548548
}
549-
#define FAST_PATH(E, N) \
550-
do { \
551-
assert((size_t)(1e ## E) == N); \
552-
if (lineno < (N)) { \
553-
return (E); \
554-
} \
549+
#define FAST_PATH(E, N) \
550+
do { \
551+
assert((size_t)(1e ## E) == 10 * N); \
552+
if (lineno < (N)) { \
553+
return (E); \
554+
} \
555555
} while (0)
556556
FAST_PATH(2, 10);
557557
FAST_PATH(3, 100);

0 commit comments

Comments
 (0)