Commit 8f426e2
committed
Simplify a bitwise expression in gen_broadcast().
Since hostmask is a 32-bit unsigned int, "~0 & hostmask" stands for
"0xFFFFFFFF & hostmask", which always equals hostmask. The tests for
"ip broadcast" hold as expected.1 parent a40bc5c commit 8f426e2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8467 | 8467 | | |
8468 | 8468 | | |
8469 | 8469 | | |
8470 | | - | |
8471 | | - | |
| 8470 | + | |
8472 | 8471 | | |
8473 | 8472 | | |
8474 | 8473 | | |
| |||
0 commit comments