summaryrefslogtreecommitdiff
path: root/gcc/ada/s-caun64.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/s-caun64.adb')
-rw-r--r--gcc/ada/s-caun64.adb11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/ada/s-caun64.adb b/gcc/ada/s-caun64.adb
index 10ff8176496..28d2c15bce6 100644
--- a/gcc/ada/s-caun64.adb
+++ b/gcc/ada/s-caun64.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -40,10 +40,7 @@ package body System.Compare_Array_Unsigned_64 is
type Word is mod 2 ** 64;
-- Used to process operands by words
- type Uword is record
- W : Word;
- end record;
- pragma Pack (Uword);
+ type Uword is new Word;
for Uword'Alignment use 1;
-- Used to process operands when unaligned
@@ -92,8 +89,8 @@ package body System.Compare_Array_Unsigned_64 is
else
while Clen /= 0 loop
- if U (L).W /= U (R).W then
- if U (L).W > U (R).W then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;