aboutsummaryrefslogtreecommitdiff
path: root/gc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gc.cpp')
-rw-r--r--gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.cpp b/gc.cpp
index 5aed8b8..ec49917 100644
--- a/gc.cpp
+++ b/gc.cpp
@@ -26,7 +26,7 @@ void GarbageCollector::expose(EvalObj *ptr) {
{
#ifdef GC_DEBUG
fprintf(stderr, "GC: 0x%llx exposed. count = %lu \"%s\"\n",
- (ull)ptr, mapping[ptr], ptr->ext_repr().c_str());
+ (ull)ptr, mapping[ptr] - 1, ptr->ext_repr().c_str());
#endif
if (!--mapping[ptr] && collecting)
{