mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Made ref_count signed to help detect negative ref_count bugs.
This commit is contained in:
@@ -75,7 +75,7 @@ template <typename T>
|
||||
struct
|
||||
rc_base
|
||||
{
|
||||
size_t ref_count;
|
||||
int32_t ref_count;
|
||||
|
||||
void ref() {
|
||||
++ref_count;
|
||||
|
||||
Reference in New Issue
Block a user