summaryrefslogtreecommitdiffstats
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-15 17:50:49 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-15 17:50:49 +0000
commit84f43acca2613efaa0f8d31dce517d35a7e7aa64 (patch)
tree6fd2104aacd58c8801d4a36221fa88abc8db0222 /gcc/ada/gcc-interface/utils.c
parent6d1013f72266327f95bee6686a1c6da2a12ff675 (diff)
downloadppe42-gcc-84f43acca2613efaa0f8d31dce517d35a7e7aa64.tar.gz
ppe42-gcc-84f43acca2613efaa0f8d31dce517d35a7e7aa64.zip
PR ada/53996
* gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194520 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 2d448d1ddb9..309cff6ad32 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -2797,7 +2797,7 @@ gnat_type_for_size (unsigned precision, int unsignedp)
if (!TYPE_NAME (t))
{
- sprintf (type_name, "%sSIGNED_%d", unsignedp ? "UN" : "", precision);
+ sprintf (type_name, "%sSIGNED_%u", unsignedp ? "UN" : "", precision);
TYPE_NAME (t) = get_identifier (type_name);
}
OpenPOWER on IntegriCloud