OSDN Git Service

* osint.adb (Find_Program_Name): Fix handling of VMS version
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 2004 13:47:50 +0000 (13:47 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 May 2004 13:47:50 +0000 (13:47 +0000)
number.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81527 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/osint.adb

index 19d4b15..c1531aa 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
+
+       * osint.adb (Find_Program_Name): Fix handling of VMS version
+       number.
+
 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
 
        * g-os_lib.ads (Invalid_Time): New constant
index 7ca5fca..0e83dbb 100644 (file)
@@ -1030,12 +1030,12 @@ package body Osint is
       if Command_Name (Cindex2) in '0' .. '9' then
          for J in reverse Cindex1 .. Cindex2 loop
 
-            exit when Command_Name (J) not in '0' .. '9';
-
             if Command_Name (J) = '.' or Command_Name (J) = ';' then
                Cindex2 := J - 1;
                exit;
             end if;
+
+            exit when Command_Name (J) not in '0' .. '9';
          end loop;
       end if;