File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
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: 0d5d2e5e149f3ca1907e924968e36ca6fe5f45e9
5
+ refs/heads/try: 6f0cbf4cd4364ee5d7b2c723089dfacf711df8f4
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ impl arena for arena {
37
37
end = n_bytes;
38
38
}
39
39
40
- let p = ptr:: offset ( ptr:: addr_of ( head. fill ) , start) ;
41
- head. fill = end;
42
- unsafe { ret unsafe:: reinterpret_cast ( p) ; }
40
+ unsafe {
41
+ let p = ptr:: offset ( vec:: unsafe:: to_ptr ( head. data ) , start) ;
42
+ head. fill = end;
43
+ ret unsafe:: reinterpret_cast ( p) ;
44
+ }
43
45
}
44
46
}
45
47
You can’t perform that action at this time.
0 commit comments