File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: b210c7ad9741fa8d560494a5686d4ac62519899f
5
+ refs/heads/try: 166d14e42de0d29ba88fa5a88551a76f7a12418e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl arena for arena {
27
27
let mut head = list:: head ( self . chunks ) ;
28
28
let chunk_size = vec:: alloc_len ( head. data ) ;
29
29
let new_min_chunk_size = uint:: max ( n_bytes, chunk_size) ;
30
- head = chunk ( uint:: next_power_of_two ( new_min_chunk_size) ) ;
30
+ head = chunk ( uint:: next_power_of_two ( new_min_chunk_size + 1 u ) ) ;
31
31
self . chunks = list:: cons ( head, @self . chunks ) ;
32
32
33
33
ret self. alloc ( n_bytes, align) ;
You can’t perform that action at this time.
0 commit comments