~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_btree_serializer_pyx.pyx

merge trunk

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)