aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorDerTee <[email protected]>2022-04-21 07:09:21 +0200
committerDerTee <[email protected]>2022-05-16 02:37:18 +0200
commitdaf0a99f94e8d9ebc1efa3fcda841078a2b2bec3 (patch)
tree890e651910d05d29845ce1207700de487b2da986 /patches
parent6955f2c067f4d36b30219931cf13832ebad6a3c4 (diff)
downloadziglings-daf0a99f94e8d9ebc1efa3fcda841078a2b2bec3.tar.xz
ziglings-daf0a99f94e8d9ebc1efa3fcda841078a2b2bec3.zip
064_builtins: clarify @addWithOverflow explanation
There were misunderstandings concerning overflowing operations and overflowed variables. Hopefully it's clearer now.
Diffstat (limited to 'patches')
-rw-r--r--patches/patches/064_builtins.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/patches/patches/064_builtins.patch b/patches/patches/064_builtins.patch
index 644128b..8b5ea0a 100644
--- a/patches/patches/064_builtins.patch
+++ b/patches/patches/064_builtins.patch
@@ -1,4 +1,6 @@
72c72
-< const tupni: u8 = @bitReverse(input);
----
-> const tupni: u8 = @bitReverse(u8, input);
+- const expected_result: u8 = ???;
++ const expected_result: u8 = 0b00010010;
+88c88
+- const tupni: u8 = @bitReverse(input);
++ const tupni: u8 = @bitReverse(u8, input);