def signed_to_unsigned(signed):
 (unsigned,) = struct.unpack('L', struct.pack('l', signed))
 return unsigned

def signed_to_unsigned ( signed ) : ( unsigned , ) = struct . unpack ( 'L' , struct . pack ( 'l' , signed ) ) return unsigned
convert a long to unsigned hex .