Forum Discussion
Bernie_10630
Aug 28, 2012Nimbostratus
I struggled with the same problem in Python, but I didn't have the ability ot use Jython. In the end used pack and unpack fromthe struct module.
def hlconvert(high,low):
if high<0:
high = unpack('=I', pack('=i',high))[0]
if low<0:
low = unpack('=I', pack('=i',low))[0]
return long((high<<32)|low)