Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 522da2b

Browse filesBrowse files
committed
fix assertions
1 parent a0ab1c2 commit 522da2b
Copy full SHA for 522da2b

File tree

1 file changed

+13
-12
lines changed
Filter options

1 file changed

+13
-12
lines changed

‎Modules/_ssl.c

Copy file name to clipboardExpand all lines: Modules/_ssl.c
+13-12Lines changed: 13 additions & 12 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.