fix: segfault when passing scalar object to dbgTraceIfShared
This commit is contained in:
parent
4964f5eb05
commit
4aab42f9aa
1 changed files with 1 additions and 1 deletions
|
|
@ -2161,7 +2161,7 @@ extern "C" LEAN_EXPORT object * lean_dbg_sleep(uint32 ms, obj_arg fn) {
|
|||
}
|
||||
|
||||
extern "C" LEAN_EXPORT object * lean_dbg_trace_if_shared(obj_arg s, obj_arg a) {
|
||||
if (lean_is_shared(a)) {
|
||||
if (!lean_is_scalar(a) && lean_is_shared(a)) {
|
||||
io_eprintln(mk_string(std::string("shared RC ") + lean_string_cstr(s)));
|
||||
}
|
||||
return a;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue