Changeset: 1a83c1011685 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1a83c1011685
Modified Files:
monetdb5/mal/mal_debugger.c
Branch: default
Log Message:
Add casts.
ATOMIC_GET may on some platforms return unsigned long, and then the
compiler would complain about the %llu format.
diffs (15 lines):
diff --git a/monetdb5/mal/mal_debugger.c b/monetdb5/mal/mal_debugger.c
--- a/monetdb5/mal/mal_debugger.c
+++ b/monetdb5/mal/mal_debugger.c
@@ -87,9 +87,9 @@ printBATproperties(stream *f, BAT *b)
if (BBP_refs(b->batCacheid) - 1)
mnstr_printf(f, " refs=%d ", BBP_refs(b->batCacheid));
if (b->theap->refs)
- mnstr_printf(f, " views=%llu", ATOMIC_GET(&b->theap->refs));
+ mnstr_printf(f, " views=%llu", (unsigned long long)
ATOMIC_GET(&b->theap->refs));
if (b->tvheap->refs)
- mnstr_printf(f, " shared vheaps=%llu",
ATOMIC_GET(&b->tvheap->refs));
+ mnstr_printf(f, " shared vheaps=%llu", (unsigned long long)
ATOMIC_GET(&b->tvheap->refs));
if (b->theap->parentid != b->batCacheid)
mnstr_printf(f, "view on %s ", BBP_logical(b->theap->parentid));
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]