浏览代码

* Indexes based on ftFloat fields were reverted

git-svn-id: trunk@10720 -
joost 17 年之前
父节点
当前提交
714523866b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 var Dbl : Double;
 begin
-  Dbl := PDouble(aValue)^-PDouble(subValue)^;
+  Dbl := PDouble(subValue)^-PDouble(aValue)^;
   if dbl < 0 then result := -1
   else if dbl > 0 then result := 1
   else result := 0;