Skip to content

Commit

Permalink
fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jan 5, 2025
1 parent a0ab1c2 commit e9d3230
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,12 @@ ssl_error_lineno_width(int lineno)
if (lineno < 0) {
return 1 + ssl_error_lineno_width(-lineno);
}
#define FAST_PATH(E, N) \
do { \
assert((size_t)(1e ## E) == N); \
if (lineno < (N)) { \
return (E); \
} \
#define FAST_PATH(E, N) \
do { \
assert((size_t)(1e ## E) == 10 * N); \
if (lineno < (N)) { \
return (E); \
} \
} while (0)
FAST_PATH(2, 10);
FAST_PATH(3, 100);
Expand Down

0 comments on commit e9d3230

Please sign in to comment.