Skip to content

Commit 45fdbcc

Browse files
ParKing666clonker
authored andcommitted
Fix: max int8 has 7 bits set to 1, not 8 bits
before: 0000...0000 1111 1111 after: 0000...0000 0111 1111
1 parent 5e722e7 commit 45fdbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/internals/variable_cleanup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Positive
9191
0000...0000 0000 0001
9292
0000...0000 0000 0010
9393
....
94-
0000...0000 1111 1111
94+
0000...0000 0111 1111
9595
9696
The compiler will ``signextend`` the sign bit, which is 1 for negative and 0 for
9797
positive values, overwriting the higher bits:

0 commit comments

Comments
 (0)