diff options
author | Thomas Voss <thomasvoss@live.com> | 2021-12-02 20:59:52 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2021-12-02 20:59:52 +0100 |
commit | e4ba18a5f54218a7f86a988ecf8afc78e548d0a4 (patch) | |
tree | d6f72d43887ce6410c9d981a2934522e2f326914 /2015 | |
parent | 826ed886b5caa62e5f46a189bde7e5434cb49356 (diff) |
Return a uint16, not an int
Diffstat (limited to '2015')
-rw-r--r-- | 2015/07/puzzles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2015/07/puzzles.py b/2015/07/puzzles.py index 37347c7..683e537 100644 --- a/2015/07/puzzles.py +++ b/2015/07/puzzles.py @@ -12,7 +12,7 @@ recipes: dict[str, list[str] | uint16] = {} def solve(wire: str) -> uint16: if wire.isdigit(): - return int(wire) + return uint16(wire) if type(recipes[wire]) == uint16: return recipes[wire] |