OmniThreadLibrary forum
News: SMF - Just Installed!
 
*
Welcome, Guest. Please login or register. May 17, 2012, 06:15:02 PM


Login with username, password and session length


Pages: [1]   Go Down

Author Topic: Bug in TOmniValueContainer.Insert()  (Read 110 times)

andi

  • Newbie
  • *
  • Posts: 16
    • View Profile
Bug in TOmniValueContainer.Insert()
« on: February 02, 2012, 06:32:01 PM »

unit: OtlCommon
There is a bug in TOmniValueContainer.Insert().

It does not change ovcCount, even it is nessesary.

Bugfix:

procedure TOmniValueContainer.Insert(paramIdx: integer; const value: TOmniValue);
begin
  if paramIdx > High(ovcValues) then
    Grow(paramIdx);
  if paramIdx >= ovcCount then
    ovcCount := paramIdx + 1;
  ovcValues[paramIdx] := value;
end; { TOmniValueContainer.Insert }



Logged

Primoz Gabrijelcic

  • Administrator
  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • Email
Re: Bug in TOmniValueContainer.Insert()
« Reply #1 on: February 03, 2012, 02:42:58 AM »

You are correct. Thanks for the report and for the fix!

This bug is now fixed in the SVN.
Logged
Pages: [1]   Go Up
 
 

Powered by MySQL Powered by PHP Powered by SMF 2.0.2 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM