Skip to content

Commit f65c885

Browse files
committed
Made ref_count signed to help detect negative ref_count bugs.
1 parent 30734a9 commit f65c885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ template <typename T>
7575
struct
7676
rc_base
7777
{
78-
size_t ref_count;
78+
int32_t ref_count;
7979

8080
void ref() {
8181
++ref_count;

0 commit comments

Comments
 (0)