From: Petter Tomner Date: Sat, 27 Nov 2021 14:52:15 +0000 (+0100) Subject: jit: Change printf specifiers for size_t to %zu X-Git-Tag: basepoints/gcc-13~2754 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e53408452448cdfa5481e25e470946c2c472539;p=thirdparty%2Fgcc.git jit: Change printf specifiers for size_t to %zu Change four occurances of %ld specifier for size_t to %zu for clean 32bit builds. Signed-off-by 2021-11-27 Petter Tomner gcc/jit/ * libgccjit.c: %ld -> %zu --- diff --git a/gcc/jit/libgccjit.c b/gcc/jit/libgccjit.c index c744b634f4b9..5d051e43e1ef 100644 --- a/gcc/jit/libgccjit.c +++ b/gcc/jit/libgccjit.c @@ -707,7 +707,7 @@ gcc_jit_function_type_get_param_type (gcc_jit_function_type *function_type, gcc::jit::recording::context *ctxt = function_type->m_ctxt; RETURN_NULL_IF_FAIL_PRINTF3 (index < num_params, ctxt, NULL, - "index of %ld is too large (%s has %ld params)", + "index of %zu is too large (%s has %zu params)", index, function_type->get_debug_string (), num_params); @@ -951,7 +951,7 @@ gcc_jit_struct_get_field (gcc_jit_struct *struct_type, size_t num_fields = struct_type->get_fields ()->length (); RETURN_NULL_IF_FAIL_PRINTF3 (index < num_fields, NULL, NULL, - "index of %ld is too large (%s has %ld fields)", + "index of %zu is too large (%s has %zu fields)", index, struct_type->get_debug_string (), num_fields);