Skip to content

Instantly share code, notes, and snippets.

@jarkkojs
Last active March 17, 2022 11:44
Show Gist options
  • Save jarkkojs/e6aea49584357228ec8b307e63f4e2cf to your computer and use it in GitHub Desktop.
Save jarkkojs/e6aea49584357228ec8b307e63f4e2cf to your computer and use it in GitHub Desktop.
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