Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f393f5

Browse files
committedJul 18, 2023
lpython.py: no-op for unsigned ints
1 parent 63c60dd commit 5f393f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/runtime/lpython/lpython.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"i16": int,
2121
"i32": int,
2222
"i64": int,
23-
"u8": lambda x: x % (2 ** 8),
24-
"u16": lambda x: x % (2 ** 16),
25-
"u32": lambda x: x % (2 ** 32),
26-
"u64": lambda x: x % (2 ** 64),
23+
"u8": lambda x: x,
24+
"u16": lambda x: x,
25+
"u32": lambda x: x,
26+
"u64": lambda x: x,
2727
"f32": float,
2828
"f64": float,
2929
"c32": complex,

0 commit comments

Comments
 (0)
Please sign in to comment.