Browse Source

* part of r21120, forgot to commit

git-svn-id: trunk@21128 -
Jonas Maebe 13 years ago
parent
commit
9c0ec8ee8c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/agjasmin.pas

+ 2 - 2
compiler/agjasmin.pas

@@ -305,7 +305,7 @@ implementation
                    begin
                    begin
                      if (infile<>lastinfile) then
                      if (infile<>lastinfile) then
                        begin
                        begin
-                         AsmWriteLn(target_asm.comment+'['+infile.name^+']');
+                         AsmWriteLn(target_asm.comment+'['+infile.name+']');
                          if assigned(lastinfile) then
                          if assigned(lastinfile) then
                            lastinfile.close;
                            lastinfile.close;
                        end;
                        end;
@@ -530,7 +530,7 @@ implementation
         AsmWriteLn('.bytecode 49.0');
         AsmWriteLn('.bytecode 49.0');
         // include files are not support by Java, and the directory of the main
         // include files are not support by Java, and the directory of the main
         // source file must not be specified
         // source file must not be specified
-        if assigned(current_module.mainsource) then
+        if current_module.mainsource<>'' then
           n:=ExtractFileName(current_module.mainsource)
           n:=ExtractFileName(current_module.mainsource)
         else
         else
           n:=InputFileName;
           n:=InputFileName;