Every line of 'python unsigned int' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
185 def int_to_integer_unsigned(n): 186 """Convert Python int in range [-32768, 65535] to BASIC Integer.""" 187 if n > 0xffff or n < -0x8000: 188 raise error.RunError(error.OVERFLOW) 189 if n < 0: 190 n = 0x10000 + n 191 return ('%', bytearray((n&0xff, n >> 8)))
72 def unsigned_int(x): 73 return unsigned_int_s.pack(x)