Skip to content

Commit ee72983

Browse files
authored
Merge pull request #16269 from ParKing666/patch-2
Fix: max int8 has 7 bits set to 1, not 8 bits
2 parents 5e722e7 + 45fdbcc commit ee72983

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)