Commit 8307a4b
src: replace unreachable code with static_assert
This function divides an unsigned 32-bit integer by 8, effectively
right-shifting it by three bits, so the result must be less than
INT_MAX.
Refs: #46209
PR-URL: #46250
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 312e10c commit 8307a4bCopy full SHA for 8307a4b
File tree
Expand file treeCollapse file tree
1 file changed
+4
-9
lines changedOpen diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
1 file changed
+4
-9
lines changedOpen diff view settings
Collapse file
src/crypto/crypto_keygen.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_keygen.cc+4-9Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | 19 | |
21 | 20 | |
22 | 21 | |
| ||
62 | 61 | |
63 | 62 | |
64 | 63 | |
65 | | - |
66 | 64 | |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
74 | 69 | |
75 | 70 | |
76 | 71 | |
|
0 commit comments