Skip to content

Commit

Permalink
Obj: Fix NA handling for integers
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Feb 7, 2024
1 parent e4b0321 commit bfc892d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CAPI/CAPI_Obj.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ procedure Batch_SetInt32Array(batch: TDSSObjectPtr; batchSize: Integer; Index: I
// Faster path
for i := 1 to batchSize do
begin
if (allowNA) or (Value^ = $80000000) then
if (allowNA) or (Value^ <> $80000000) then
begin
// check for each element, in case the element is being edited somewhere else
singleEdit := not (Flg.EditingActive in batch^.Flags);
Expand All @@ -1738,7 +1738,7 @@ procedure Batch_SetInt32Array(batch: TDSSObjectPtr; batchSize: Integer; Index: I

for i := 1 to batchSize do
begin
if (allowNA) or (Value^ = $80000000) then
if (allowNA) or (Value^ <> $80000000) then
batch^.SetInteger(Index, Value^, setterFlags);
inc(batch);
inc(Value)
Expand Down

0 comments on commit bfc892d

Please sign in to comment.