Skip to content

Commit bfc892d

Browse files
committed
Obj: Fix NA handling for integers
1 parent e4b0321 commit bfc892d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CAPI/CAPI_Obj.pas

+2-2
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ procedure Batch_SetInt32Array(batch: TDSSObjectPtr; batchSize: Integer; Index: I
17151715
// Faster path
17161716
for i := 1 to batchSize do
17171717
begin
1718-
if (allowNA) or (Value^ = $80000000) then
1718+
if (allowNA) or (Value^ <> $80000000) then
17191719
begin
17201720
// check for each element, in case the element is being edited somewhere else
17211721
singleEdit := not (Flg.EditingActive in batch^.Flags);
@@ -1738,7 +1738,7 @@ procedure Batch_SetInt32Array(batch: TDSSObjectPtr; batchSize: Integer; Index: I
17381738

17391739
for i := 1 to batchSize do
17401740
begin
1741-
if (allowNA) or (Value^ = $80000000) then
1741+
if (allowNA) or (Value^ <> $80000000) then
17421742
batch^.SetInteger(Index, Value^, setterFlags);
17431743
inc(batch);
17441744
inc(Value)

0 commit comments

Comments
 (0)