diff options
| author | comex <comexk@gmail.com> | 2009-02-02 21:48:21 -0500 |
|---|---|---|
| committer | comex <comexk@gmail.com> | 2009-02-02 21:48:21 -0500 |
| commit | 653eab5bfe95a42ebb2ebba7aa4a1249710f5ba0 (patch) | |
| tree | 09111fcb3c86aa7b8ec190a8e7e03de0c5e666ae /ethyl.py | |
| parent | ebb936ebeed92d444b3e7989bc2a92964686e3b6 (diff) | |
fixes
Diffstat (limited to '')
| -rw-r--r-- | ethyl.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -282,6 +282,8 @@ def get_array(chunk, startpos, array_size, item_size): for n in xrange(array_size): if item_size == 4: ar.append(struct.unpack('>I', chunk[pos:pos+4])[0]) + elif item_size == 1: + ar.append(struct.unpack('>B', chunk[pos:pos+4])[0]) elif item_size % 4 == 0: ar.append(struct.unpack('>' + 'I'*(item_size/4), chunk[pos:pos+item_size])) else: |
