summaryrefslogtreecommitdiff
path: root/gcc/ada/a-locale.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-22 10:02:10 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-22 10:02:10 +0000
commit6a7bc8987e21dcee8ba9a1e215f405e6b0789951 (patch)
treecb33e8d504c2e2ff8124c3a56f4d2156460a7ca9 /gcc/ada/a-locale.adb
parent75ef962565fe3f763a5e087399b6dd69fa200ced (diff)
downloadgcc-6a7bc8987e21dcee8ba9a1e215f405e6b0789951.tar.gz
2010-10-22 Arnaud Charlet <charlet@adacore.com>
* a-locale.adb: Minor code clean up. 2010-10-22 Thomas Quinot <quinot@adacore.com> * exp_ch4.adb: Minor code reorganization and factoring. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-locale.adb')
-rw-r--r--gcc/ada/a-locale.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/a-locale.adb b/gcc/ada/a-locale.adb
index 64c51256ad1..d56970c86e9 100644
--- a/gcc/ada/a-locale.adb
+++ b/gcc/ada/a-locale.adb
@@ -45,7 +45,7 @@ package body Ada.Locales is
pragma Import (C, C_Get_Language_Code);
F : Lower_4;
begin
- C_Get_Language_Code (F (1)'Address);
+ C_Get_Language_Code (F'Address);
return Language_Code (F (1 .. 3));
end Language;
@@ -58,7 +58,7 @@ package body Ada.Locales is
pragma Import (C, C_Get_Country_Code);
F : Upper_4;
begin
- C_Get_Country_Code (F (1)'Address);
+ C_Get_Country_Code (F'Address);
return Country_Code (F (1 .. 2));
end Country;