From: H.J. Lu Date: Sun, 14 Dec 2014 14:59:20 +0000 (-0800) Subject: Cast current_group_size to unsigned long X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=add6016bac156e40e60bf21a2c2c8ed3015db049;p=binutils-gdb.git Cast current_group_size to unsigned long * aarch64.cc (AArch64_relocate_functions::maybe_apply_stub): Cast current_group_size to unsigned long when reporting error. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 5c32168051f..8f560432278 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2014-12-14 H.J. Lu + + * aarch64.cc (AArch64_relocate_functions::maybe_apply_stub): + Cast current_group_size to unsigned long when reporting error. + 2014-12-10 Jing Yu * aarch64.cc (Target_aarch64): Add new variable stub_group_size_. diff --git a/gold/aarch64.cc b/gold/aarch64.cc index f2505d66290..05933e0a303 100644 --- a/gold/aarch64.cc +++ b/gold/aarch64.cc @@ -4205,7 +4205,7 @@ maybe_apply_stub(unsigned int r_type, if (status != This::STATUS_OKAY) gold_error(_("Stub is too far away, try a smaller value " "for '--stub-group-size'. The current value is 0x%lx."), - current_group_size); + static_cast(current_group_size)); return true; }