openwrt: Lua allows 0xFFFFFFFF to overflow. Use decimal notation instead.
This commit is contained in:
parent
8032327cc2
commit
a6f3300ffc
|
@ -98,7 +98,7 @@ function buffer(child, interval)
|
|||
if y >= x then
|
||||
return y - x
|
||||
else -- y wrapped around 32-bit boundary
|
||||
return (0xFFFFFFFF - x) + y + 1
|
||||
return 4294967296 - x + y
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue