Last active
March 17, 2022 11:44
-
-
Save jarkkojs/e6aea49584357228ec8b307e63f4e2cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import c_uint8 as u8 | |
if __name__ == "__main__": | |
a = 32 | |
print(u8(~(a - 1))) | |
print(u8(-a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment