Skip to content

Commit e0a8b3f

Browse files
committed
Bug#32107056 SEVERAL COMPILE WARNINGS FOR MYSQL CLUSTER ON WINDOWS WITH VS 2019 [#1] [noclose]
storage\ndb\include\util\Bitmask.hpp(388,23): warning C4146: unary minus operator applied to unsigned type, result still unsigned Change-Id: I657966b790b96356d987767302cfceb446e29a98
1 parent ff6df56 commit e0a8b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/ndb/include/util/Bitmask.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2003, 2020, Oracle and/or its affiliates.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -385,7 +385,7 @@ inline bool
385385
BitmaskImpl::is_set(unsigned size, const Uint32 data[])
386386
{
387387
for (unsigned i = 0; i < size; i++) {
388-
if (data[i] != -1U)
388+
if (~data[i] != 0)
389389
return false;
390390
}
391391
return true;

0 commit comments

Comments
 (0)