From 45fdbccf5b187723f4be66b0e8e1e1e713577b3b Mon Sep 17 00:00:00 2001 From: ParKing666 <123419961+ParKing666@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:57:11 +0100 Subject: [PATCH] Fix: max int8 has 7 bits set to 1, not 8 bits before: 0000...0000 1111 1111 after: 0000...0000 0111 1111 --- docs/internals/variable_cleanup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/internals/variable_cleanup.rst b/docs/internals/variable_cleanup.rst index bab3c8bef2ef..6def08f227c9 100644 --- a/docs/internals/variable_cleanup.rst +++ b/docs/internals/variable_cleanup.rst @@ -91,7 +91,7 @@ Positive 0000...0000 0000 0001 0000...0000 0000 0010 .... - 0000...0000 1111 1111 + 0000...0000 0111 1111 The compiler will ``signextend`` the sign bit, which is 1 for negative and 0 for positive values, overwriting the higher bits: