From 9226ac9ec56f1b3ba5320f34b57ebb78aec0bc46 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 23 Sep 2011 12:09:52 -0700 Subject: [PATCH] rt: Fix build bustage due to gcc's format string warnings --- src/rt/rust_shape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index 06e8571f589..64859dbfa35 100644 --- a/src/rt/rust_shape.h +++ b/src/rt/rust_shape.h @@ -318,14 +318,14 @@ public: if (n_obj_params & 0x80000000) { // Function closure. DPRINT("n_obj_params FN %lu, tydesc %p, starting at %p\n", - n_obj_params, tydesc, tydesc + 4); + (unsigned long)n_obj_params, tydesc, tydesc + 4); n_obj_params &= 0x7fffffff; first_param = (const type_desc **) ((uint8_t *)(tydesc + 4) + (*tydesc)->size); } else { // Object closure. DPRINT("n_obj_params OBJ %lu, tydesc %p, starting at %p\n", - n_obj_params, tydesc, tydesc + 4); + (unsigned long)n_obj_params, tydesc, tydesc + 4); first_param = tydesc + 4; } }