aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/libgccjit.c
diff options
context:
space:
mode:
authorPetter Tomner <tomner@kth.se>2021-11-27 15:52:15 +0100
committerPetter Tomner <tomner@kth.se>2021-11-27 16:45:41 +0100
commit1e53408452448cdfa5481e25e470946c2c472539 (patch)
tree061cd865d48b855d6c7702bed0a02d3c14ef2681 /gcc/jit/libgccjit.c
parentf7e4f57f1c7883721b6f5ad48953e10ebfb5a756 (diff)
downloadgcc-1e53408452448cdfa5481e25e470946c2c472539.zip
gcc-1e53408452448cdfa5481e25e470946c2c472539.tar.gz
gcc-1e53408452448cdfa5481e25e470946c2c472539.tar.bz2
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 <tomner@kth.se> gcc/jit/ * libgccjit.c: %ld -> %zu
Diffstat (limited to 'gcc/jit/libgccjit.c')
-rw-r--r--gcc/jit/libgccjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/jit/libgccjit.c b/gcc/jit/libgccjit.c
index c744b63..5d051e4 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);