diff options
author | Nicolas Williams <nico@cryptonector.com> | 2021-10-24 15:26:08 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2021-10-24 16:23:26 -0500 |
commit | 1a1804afcb88cdc3f1f0e74e83385146b55ae205 (patch) | |
tree | bff7daeb282547034e7198b0f645e52142a1af11 | |
parent | 582717a7b4af6ce0e231b9aee090107235ef2d0f (diff) | |
download | jq-1a1804afcb88cdc3f1f0e74e83385146b55ae205.tar.gz |
Fix LOADV/LOADVN refcount printing
-rw-r--r-- | src/execute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/execute.c b/src/execute.c index d840582..e1894aa 100644 --- a/src/execute.c +++ b/src/execute.c @@ -542,8 +542,8 @@ jv jq_next(jq_state *jq) { jv* var = frame_local_var(jq, v, level); if (jq->debug_trace_enabled) { printf("V%d = ", v); - jv_dump(jv_copy(*var), 0); - printf(" (%d)\n", jv_get_refcnt(*var)); + jv_dump(jv_copy(*var), JV_PRINT_REFCOUNT); + printf("\n"); } jv_free(stack_pop(jq)); stack_push(jq, jv_copy(*var)); @@ -557,8 +557,8 @@ jv jq_next(jq_state *jq) { jv* var = frame_local_var(jq, v, level); if (jq->debug_trace_enabled) { printf("V%d = ", v); - jv_dump(jv_copy(*var), 0); - printf(" (%d)\n", jv_get_refcnt(*var)); + jv_dump(jv_copy(*var), JV_PRINT_REFCOUNT); + printf("\n"); } jv_free(stack_popn(jq)); |