Ver código fonte

* fixed compiler warnings

master
bergmann 9 anos atrás
pai
commit
4e03a0f6f3
2 arquivos alterados com 3 adições e 0 exclusões
  1. +2
    -0
      uutlAlgorithm.pas
  2. +1
    -0
      uutlSyncObjs.pas

+ 2
- 0
uutlAlgorithm.pas Ver arquivo

@@ -100,6 +100,7 @@ class function TutlBinarySearch.DoSearch(
var
i, cmp: Integer;
begin
result := false;
if (aMin <= aMax) then begin
i := aMin + Trunc((aMax - aMin) / 2);
cmp := aComparer.Compare(aItem, aArray[i]);
@@ -127,6 +128,7 @@ class function TutlBinarySearch.DoSearch(
var
i, cmp: Integer;
begin
result := false;
if (aMin <= aMax) then begin
i := aMin + Trunc((aMax - aMin) / 2);
cmp := aComparer.Compare(aItem, aArray[i]);


+ 1
- 0
uutlSyncObjs.pas Ver arquivo

@@ -169,6 +169,7 @@ var
i: integer;
timeout, tick: qword;
begin
result := wrError;
timeout := GetTickCount64 + aTimeout;
for i := 0 to Count-1 do begin
if (aTimeout <> INFINITE) then begin


Carregando…
Cancelar
Salvar