Browse Source

* fixed my previous commit

florian 25 years ago
parent
commit
42459e508a
1 changed files with 7 additions and 2 deletions
  1. 7 2
      compiler/cg386set.pas

+ 7 - 2
compiler/cg386set.pas

@@ -847,6 +847,9 @@ implementation
                                     end;
                                     end;
             else internalerror(2002);
             else internalerror(2002);
          end;
          end;
+         { we need the min_label always to choose between }
+         { cmps and subs/decs                             }
+         min_label:=case_get_min(p^.nodes);
          { now generate the jumps }
          { now generate the jumps }
            if cs_optimize in aktglobalswitches then
            if cs_optimize in aktglobalswitches then
            begin
            begin
@@ -857,7 +860,6 @@ implementation
               { moreover can the size only be appro- }
               { moreover can the size only be appro- }
               { ximated as it is not known if rel8,  }
               { ximated as it is not known if rel8,  }
               { rel16 or rel32 jumps are used   }
               { rel16 or rel32 jumps are used   }
-              min_label:=case_get_min(p^.nodes);
               max_label:=case_get_max(p^.nodes);
               max_label:=case_get_max(p^.nodes);
               labels:=case_count_labels(p^.nodes);
               labels:=case_count_labels(p^.nodes);
               { can we omit the range check of the jump table ? }
               { can we omit the range check of the jump table ? }
@@ -956,7 +958,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.51  2000-05-16 18:56:04  florian
+  Revision 1.52  2000-05-17 11:42:27  florian
+    * fixed my previous commit
+
+  Revision 1.51  2000/05/16 18:56:04  florian
     * fixed a problem with case and negative labels if a linear list
     * fixed a problem with case and negative labels if a linear list
       was generated (fixes tests\test\testcase)
       was generated (fixes tests\test\testcase)