ソースを参照

* fixed constant set evaluation of new set handling for non-commutative
operators

Jonas Maebe 23 年 前
コミット
6e43afc6e1
1 ファイル変更7 行追加3 行削除
  1. 7 3
      compiler/nadd.pas

+ 7 - 3
compiler/nadd.pas

@@ -580,12 +580,12 @@ implementation
                     end;
                  lten :
                     begin
-			b:=tsetconstnode(right).value_set^ <= tsetconstnode(left).value_set^;
+			b:=tsetconstnode(left).value_set^ <= tsetconstnode(right).value_set^;
             		t:=cordconstnode.create(byte(b),booltype);
                     end;
                  gten :
                     begin
-			b:=tsetconstnode(right).value_set^ >= tsetconstnode(left).value_set^;
+			b:=tsetconstnode(left).value_set^ >= tsetconstnode(right).value_set^;
             		t:=cordconstnode.create(byte(b),booltype);
                     end;
               end;
@@ -1708,7 +1708,11 @@ begin
 end.
 {
   $Log$
-  Revision 1.56  2002-07-23 12:34:29  daniel
+  Revision 1.57  2002-07-23 13:08:16  jonas
+    * fixed constant set evaluation of new set handling for non-commutative
+      operators
+
+  Revision 1.56  2002/07/23 12:34:29  daniel
   * Readded old set code. To use it define 'oldset'. Activated by default
     for ppc.