~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_pyx.pyx

  • Committer: Martin
  • Date: 2011-02-25 18:52:53 UTC
  • mto: This revision was merged to the branch mainline in revision 5691.
  • Revision ID: gzlist@googlemail.com-20110225185253-y0kplvee84n7pvgn
Use correct format character for unsigned int gc_chk_sha1_record members

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
        # %llu is what we really want, but unfortunately it was only added
514
514
        # in python 2.7... :(
515
515
        block_offset_str = str(record.block_offset)
516
 
        value = PyString_FromFormat('%s %lu %lu %lu',
 
516
        value = PyString_FromFormat('%s %u %u %u',
517
517
                                PyString_AS_STRING(block_offset_str),
518
518
                                record.block_length,
519
519
                                record.record_start, record.record_end)
520
520
    else:
521
 
        value = PyString_FromFormat('%lu %lu %lu %lu',
 
521
        value = PyString_FromFormat('%lu %u %u %u',
522
522
                                    <unsigned long>record.block_offset,
523
523
                                    record.block_length,
524
524
                                    record.record_start, record.record_end)