Browse Source

* pointer fixes

peter 26 years ago
parent
commit
8a290c3cfd
2 changed files with 12 additions and 6 deletions
  1. 7 4
      rtl/go32v2/dos.pp
  2. 5 2
      rtl/go32v2/emu387.pp

+ 7 - 4
rtl/go32v2/dos.pp

@@ -956,7 +956,7 @@ begin
   while assigned(hp^) do
   while assigned(hp^) do
    begin
    begin
      inc(envcount);
      inc(envcount);
-     hp:=hp+4;
+     inc(hp);
    end;
    end;
 end;
 end;
 
 
@@ -968,7 +968,7 @@ begin
      envstr:='';
      envstr:='';
      exit;
      exit;
    end;
    end;
-  envstr:=strpas(ppchar(envp+4*(index-1))^);
+  envstr:=strpas(ppchar(pointer(envp)+4*(index-1))^);
 end;
 end;
 
 
 
 
@@ -990,7 +990,7 @@ begin
         getenv:=copy(hs,eqpos+1,255);
         getenv:=copy(hs,eqpos+1,255);
         exit;
         exit;
       end;
       end;
-     hp:=hp+4;
+     inc(hp);
    end;
    end;
 end;
 end;
 
 
@@ -1015,7 +1015,10 @@ End;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.10  1999-08-13 21:23:15  peter
+  Revision 1.11  1999-09-08 18:55:49  peter
+    * pointer fixes
+
+  Revision 1.10  1999/08/13 21:23:15  peter
     * fsearch checks first if the specified file exists and returns that
     * fsearch checks first if the specified file exists and returns that
       if it was found
       if it was found
 
 

+ 5 - 2
rtl/go32v2/emu387.pp

@@ -134,7 +134,7 @@ begin
         getenv:=copy(hs,eqpos+1,255);
         getenv:=copy(hs,eqpos+1,255);
         exit;
         exit;
       end;
       end;
-     hp:=hp+4;
+     inc(hp);
    end;
    end;
 end;
 end;
 
 
@@ -217,7 +217,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  1999-04-28 00:27:43  pierre
+  Revision 1.5  1999-09-08 18:55:50  peter
+    * pointer fixes
+
+  Revision 1.4  1999/04/28 00:27:43  pierre
    * bug0230 fixed OVERFLOW and DIVZ cause FPU exception
    * bug0230 fixed OVERFLOW and DIVZ cause FPU exception
 
 
   Revision 1.3  1999/04/08 12:22:59  peter
   Revision 1.3  1999/04/08 12:22:59  peter