Changeset 556a285


Ignore:
Timestamp:
Mar 11, 2011, 1:50:58 PM (14 years ago)
Author:
Quentin Smith <quentin@…>
Branches:
no-cups
Children:
1176f8b
Parents:
1b9d629
git-author:
Quentin Smith <quentin@…> (03/11/11 13:50:58)
git-committer:
Quentin Smith <quentin@…> (03/11/11 13:50:58)
Message:

Properly unpack RESOLUTION and RANGE_OF_INTEGERS values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/ipp/value.py

    r94211df r556a285  
    226226            # contains the units
    227227
    228             packed_value = truct.pack('>iib', self.value)
     228            packed_value = truct.pack('>iib', *self.value)
    229229           
    230230        elif self.value_tag == OctetStringTags.RANGE_OF_INTEGER:
     
    233233            # SIGNED-INTEGER contains the upper bound.
    234234
    235             packed_value = struct.pack('>ii', self.value)
     235            packed_value = struct.pack('>ii', *self.value)
    236236
    237237        elif self.value_tag == OctetStringTags.TEXT_WITH_LANGUAGE or \
Note: See TracChangeset for help on using the changeset viewer.