Skip to content

Commit 9c7f118

Browse files
committed
Bug#23130016 DBACC COMPILER WARNING UNARY MINUS ON UNSIGNED
Change-Id: I2a621ea38a0723585b10b55c318257865a8ca9fa
1 parent d8eeca1 commit 9c7f118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6514,7 +6514,7 @@ void Dbacc::expandcontainer(Page8Ptr pageptr, Uint32 conidx)
65146514
else
65156515
{
65166516
jam();
6517-
elemStep = -elemLen;
6517+
elemStep = 0 - elemLen;
65186518
elemptr = conptr + elemStep;
65196519
}
65206520
arrGuard(conptr, 2048);
@@ -7401,7 +7401,7 @@ void Dbacc::shrinkcontainer(Page8Ptr pageptr,
74017401
else
74027402
{
74037403
jam();
7404-
elemStep = -elemLen;
7404+
elemStep = 0 - elemLen;
74057405
tshrElementptr = conptr + elemStep;
74067406
}//if
74077407
SHR_LOOP:

0 commit comments

Comments
 (0)