mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Brush up some more code
This commit is contained in:
parent
ee6566a152
commit
a2d269dc38
32 changed files with 251 additions and 335 deletions
2
third_party/python/pyobj.c
vendored
2
third_party/python/pyobj.c
vendored
|
@ -414,7 +414,7 @@ IsIgnoredModule(const char *s)
|
|||
l = 0;
|
||||
r = ARRAYLEN(kIgnoredModules) - 1;
|
||||
while (l <= r) {
|
||||
m = (l + r) >> 1;
|
||||
m = (l & r) + ((l ^ r) >> 1); // floor((a+b)/2)
|
||||
x = strcmp(s, kIgnoredModules[m]);
|
||||
if (x < 0) {
|
||||
r = m - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue