diff options
author | alandonovan <adonovan@google.com> | 2021-01-25 14:35:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 14:35:08 -0500 |
commit | 28488fade247cf7c918bd994f16b1f38b4b7c5bc (patch) | |
tree | 4c307c96f043238b0374402784d61e27605e4988 /starlark/empty.s | |
parent | f935de8d11ef317200abeff45a7448773dcfb717 (diff) | |
download | starlark-go-28488fade247cf7c918bd994f16b1f38b4b7c5bc.tar.gz |
starlark: fix bug in int(string, base=int) (#344)
Previously, when int was called with an explicit base,
it would report an error if the digit string starts
with a base prefix for a different base, such as int("0b101", 16).
Now, it uses the base prefix only if it matches the requested
base, so the example above would return 0x0b101, as would
int("0x0b101", 16).
The int(string, int) case has been split out for clarity.
Update doc.
Fixes #337
Diffstat (limited to 'starlark/empty.s')
0 files changed, 0 insertions, 0 deletions