Procházet zdrojové kódy

* Indexes based on ftFloat fields were reverted

git-svn-id: trunk@10720 -
joost před 17 roky
rodič
revize
714523866b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/fcl-db/src/base/bufdataset.pas

+ 1 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -346,7 +346,7 @@ end;
 function DBCompareDouble(subValue, aValue: pointer; options: TLocateOptions): LargeInt;
 function DBCompareDouble(subValue, aValue: pointer; options: TLocateOptions): LargeInt;
 var Dbl : Double;
 var Dbl : Double;
 begin
 begin
-  Dbl := PDouble(aValue)^-PDouble(subValue)^;
+  Dbl := PDouble(subValue)^-PDouble(aValue)^;
   if dbl < 0 then result := -1
   if dbl < 0 then result := -1
   else if dbl > 0 then result := 1
   else if dbl > 0 then result := 1
   else result := 0;
   else result := 0;