Skip to content

Commit 522da2b

Browse files
committed
fix assertions
1 parent a0ab1c2 commit 522da2b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Modules/_ssl.c

+13-12
Original file line numberDiff line numberDiff line change
@@ -546,19 +546,20 @@ 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)); \
552+
if (lineno < (N)) { \
553+
return (E); \
554+
} \
555555
} while (0)
556-
FAST_PATH(2, 10);
557-
FAST_PATH(3, 100);
558-
FAST_PATH(4, 1000);
559-
FAST_PATH(5, 10000);
560-
FAST_PATH(6, 100000);
561-
FAST_PATH(7, 1000000);
556+
FAST_PATH(1, 10);
557+
FAST_PATH(2, 100);
558+
FAST_PATH(3, 1000);
559+
FAST_PATH(4, 10000);
560+
FAST_PATH(5, 100000);
561+
FAST_PATH(6, 1000000);
562+
FAST_PATH(7, 10000000);
562563
#undef FAST_PATH
563564
return (size_t)ceil(log10(lineno));
564565
}

0 commit comments

Comments
 (0)