mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-03 12:09:35 +01:00
parent
241ace4f10
commit
4ca8c44a07
3 changed files with 15 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def _js_bit_op(op):
|
|||
with contextlib.suppress(TypeError):
|
||||
if math.isnan(x): # NB: NaN cannot be checked by membership
|
||||
return 0
|
||||
return x
|
||||
return int(float(x))
|
||||
|
||||
def wrapped(a, b):
|
||||
return op(zeroise(a), zeroise(b)) & 0xffffffff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue