Ignore:
Timestamp:
Mar 10, 2011, 2:04:52 AM (14 years ago)
Author:
Quentin Smith <quentin@…>
Branches:
no-cups
Children:
7a1c039
Parents:
0e5cdb3
git-author:
Quentin Smith <quentin@…> (03/10/11 02:04:52)
git-committer:
Quentin Smith <quentin@…> (03/10/11 02:04:52)
Message:

Err, make it work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/lib/ippvalue.py

    ra6a1f43 r569c377  
    9999            value = struct.unpack('>i', packed_value)[0]
    100100        elif value_tag == IntegerTags.BOOLEAN:
    101             value = struct.unpack('>?', packed_value)[0]
     101            value = struct.unpack('>b', packed_value)[0]
    102102        elif value_tag == IntegerTags.ENUM:
    103103            value = struct.unpack('>i', packed_value)[0]
     
    196196            packed_value = struct.pack('>i', self.value)
    197197        elif self.value_tag == IntegerTags.BOOLEAN:
    198             packed_value = struct.pack('>?', self.value)
     198            packed_value = struct.pack('>b', self.value)
    199199        elif self.value_tag == IntegerTags.ENUM:
    200200            packed_value = struct.pack('>i', self.value)
Note: See TracChangeset for help on using the changeset viewer.