Skip to content

Commit e74fdf1

Browse files
committed
---
yaml --- r: 4035 b: refs/heads/master c: 45748a3 h: refs/heads/master i: 4033: 3fc47cc 4031: d9f6ed9 v: v3
1 parent 9afba0f commit e74fdf1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 355f77ef87bec89f37e77e751a530e418e62fe2c
2+
refs/heads/master: 45748a3be4275258ada5ca23b09c6b2f0122ca3f

trunk/src/lib/box.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
export ptr_eq;
33

4-
native "rust" mod rustrt {
5-
fn rust_ptr_eq[T](@T a, @T b) -> int;
4+
fn ptr_eq[T](&@T a, &@T b) -> bool {
5+
let uint a_ptr = unsafe::reinterpret_cast(a);
6+
let uint b_ptr = unsafe::reinterpret_cast(b);
7+
ret a_ptr == b_ptr;
68
}
7-
8-
fn ptr_eq[T](@T a, @T b) -> bool { ret rustrt::rust_ptr_eq[T](a, b) != 0; }

0 commit comments

Comments
 (0)