MCPcopy Index your code
hub / github.com/RustPython/RustPython / read_signed_varint

Function read_signed_varint

Lib/test/test_code.py:1303–1308  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

1301 return val
1302
1303def read_signed_varint(it):
1304 uval = read_varint(it)
1305 if uval & 1:
1306 return -(uval >> 1)
1307 else:
1308 return uval >> 1
1309
1310def parse_location_table(code):
1311 line = code.co_firstlineno

Callers 1

parse_location_tableFunction · 0.85

Calls 1

read_varintFunction · 0.70

Tested by

no test coverage detected