From 9a216e4f48eb0e8738e4e85b33407c179ca1e37f Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Sat, 18 Jul 2026 18:32:09 -0400 Subject: [tnslc] Fixes for bitwise ops --- tnslc/compile/function.tnsl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tnslc/compile/function.tnsl') diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl index c88654a..bc64156 100644 --- a/tnslc/compile/function.tnsl +++ b/tnslc/compile/function.tnsl @@ -1750,6 +1750,14 @@ struct Function { lhs.or(s`.cb, ~rhs) ;; else if (utils.strcmp(n`.data, "^\0") == true) lhs.xor(s`.cb, ~rhs) + ;; else if (utils.strcmp(n`.data, ">>\0") == true) + lhs.shr(s`.cb, ~rhs) + ;; else if (utils.strcmp(n`.data, "<<\0") == true) + lhs.shl(s`.cb, ~rhs) + ;; else + _printf("COMPILER ERR: NOT IMPL '\0") + _printf(n`.data) + _printf("'\n\0") ;/ s`.free_after(~lhs, true) -- cgit v1.2.3