oops, fix int8array again

This commit is contained in:
David Rose 2002-01-07 19:21:28 +00:00
parent 25fed58bca
commit a885fa007a
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@
elif subatomicType == STBlob:
self.addString(arg)
elif subatomicType == STInt8array:
self.addUint8(len(arg))
self.addUint16(len(arg))
for i in arg:
self.addInt8(int(i*divisor))
elif subatomicType == STInt16array:
@ -37,7 +37,7 @@
for i in arg:
self.addInt32(int(i*divisor))
elif subatomicType == STUint8array:
self.addUint8(len(arg))
self.addUint16(len(arg))
for i in arg:
self.addUint8(int(i*divisor))
elif subatomicType == STUint16array:

View File

@ -27,7 +27,7 @@
elif subatomicType == STBlob:
retVal = self.getString()
elif subatomicType == STInt8array:
len = self.getUint8()
len = self.getUint16()
retVal = []
for i in range(len):
retVal.append(self.getInt8())
@ -42,7 +42,7 @@
for i in range(len):
retVal.append(self.getInt32())
elif subatomicType == STUint8array:
len = self.getUint8()
len = self.getUint16()
retVal = []
for i in range(len):
retVal.append(self.getUint8())