Browse Source

* Patch from Sebastian Guenther

michael 26 years ago
parent
commit
022e44bb17
1 changed files with 8 additions and 5 deletions
  1. 8 5
      rtl/objpas/typinfo.pp

+ 8 - 5
rtl/objpas/typinfo.pp

@@ -507,7 +507,7 @@ unit typinfo;
               Value:=Value and $ff;
               Value:=Value and $ff;
          end;
          end;
          SetIndexValues(PropInfo,Index,Ivalue);
          SetIndexValues(PropInfo,Index,Ivalue);
-         case (PropInfo^.PropProcs) and 3 of
+         case (PropInfo^.PropProcs shr 2) and 3 of
             ptfield:
             ptfield:
               PLongint(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Value;
               PLongint(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Value;
             ptstatic:
             ptstatic:
@@ -591,7 +591,7 @@ unit typinfo;
 
 
       begin
       begin
          SetIndexValues(PropInfo,Index,IValue);
          SetIndexValues(PropInfo,Index,IValue);
-         case (PropInfo^.PropProcs) and 3 of
+         case (PropInfo^.PropProcs shr 2) and 3 of
             ptfield:
             ptfield:
               PLongint(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Longint(Pointer(Value)) ;
               PLongint(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Longint(Pointer(Value)) ;
             ptstatic:
             ptstatic:
@@ -610,7 +610,7 @@ unit typinfo;
 
 
     begin
     begin
       SetIndexValues(PRopInfo,Index,IValue);
       SetIndexValues(PRopInfo,Index,IValue);
-         case (PropInfo^.PropProcs) and 3 of
+         case (PropInfo^.PropProcs shr 2) and 3 of
             ptfield:
             ptfield:
               PShortString(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Value;
               PShortString(Pointer(Instance)+Longint(PropInfo^.SetProc))^:=Value;
             ptstatic:
             ptstatic:
@@ -676,7 +676,7 @@ unit typinfo;
 
 
        begin
        begin
          SetIndexValues(PropInfo,Index,Ivalue);
          SetIndexValues(PropInfo,Index,Ivalue);
-         case (PropInfo^.PropProcs) and 3 of
+         case (PropInfo^.PropProcs shr 2) and 3 of
             ptfield:
             ptfield:
               Case GetTypeData(PropInfo^.PropType)^.FloatType of
               Case GetTypeData(PropInfo^.PropType)^.FloatType of
                ftSingle:
                ftSingle:
@@ -774,7 +774,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.24  1999-08-06 13:21:40  michael
+  Revision 1.25  1999-08-29 22:21:27  michael
+  * Patch from Sebastian Guenther
+
+  Revision 1.24  1999/08/06 13:21:40  michael
   * Patch from Sebastian Guenther
   * Patch from Sebastian Guenther
 
 
   Revision 1.23  1999/06/04 12:48:37  michael
   Revision 1.23  1999/06/04 12:48:37  michael