aboutsummaryrefslogtreecommitdiff
path: root/2015
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-02 20:59:52 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-02 20:59:52 +0100
commite4ba18a5f54218a7f86a988ecf8afc78e548d0a4 (patch)
treed6f72d43887ce6410c9d981a2934522e2f326914 /2015
parent826ed886b5caa62e5f46a189bde7e5434cb49356 (diff)
Return a uint16, not an int
Diffstat (limited to '2015')
-rw-r--r--2015/07/puzzles.py2
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]