Commit eed52a9f authored by mercury233's avatar mercury233 Committed by GitHub

suppress C4146 warning (#714)

parent 0d03868b
......@@ -1367,7 +1367,7 @@ int32_t card::is_extra_link_state() {
uint32_t checking = linked_zone & ~checked;
if(!checking)
return FALSE;
uint32_t rightmost = checking & (-checking);
uint32_t rightmost = checking & (~checking + 1);
checked |= rightmost;
if(rightmost < 0x10000U) {
for(int32_t i = 0; i < 7; ++i) {
......
......@@ -877,7 +877,7 @@ int32_t field::check_extra_link(int32_t playerid) {
uint32_t checking = linked_zone & ~checked;
if(!checking)
return FALSE;
uint32_t rightmost = checking & (-checking);
uint32_t rightmost = checking & (~checking + 1);
checked |= rightmost;
if(rightmost < 0x10000U) {
for(int32_t i = 0; i < 7; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment