@@ -2096,44 +2096,44 @@ database_search( int *in_board,
2096
2096
if ( in_board [pos ] != EMPTY ) {
2097
2097
index = 8 * i + j ;
2098
2098
if ( index < 32 )
2099
- shape_lo [0 ] |= (1 << index );
2099
+ shape_lo [0 ] |= (1u << index );
2100
2100
else
2101
- shape_hi [0 ] |= (1 << (index - 32 ));
2101
+ shape_hi [0 ] |= (1u << (index - 32 ));
2102
2102
index = 8 * i + (7 - j );
2103
2103
if ( index < 32 )
2104
- shape_lo [1 ] |= (1 << index );
2104
+ shape_lo [1 ] |= (1u << index );
2105
2105
else
2106
- shape_hi [1 ] |= (1 << (index - 32 ));
2106
+ shape_hi [1 ] |= (1u << (index - 32 ));
2107
2107
index = 8 * j + i ;
2108
2108
if ( index < 32 )
2109
- shape_lo [2 ] |= (1 << index );
2109
+ shape_lo [2 ] |= (1u << index );
2110
2110
else
2111
- shape_hi [2 ] |= (1 << (index - 32 ));
2111
+ shape_hi [2 ] |= (1u << (index - 32 ));
2112
2112
index = 8 * j + (7 - i );
2113
2113
if ( index < 32 )
2114
- shape_lo [3 ] |= (1 << index );
2114
+ shape_lo [3 ] |= (1u << index );
2115
2115
else
2116
- shape_hi [3 ] |= (1 << (index - 32 ));
2116
+ shape_hi [3 ] |= (1u << (index - 32 ));
2117
2117
index = 8 * (7 - i ) + j ;
2118
2118
if ( index < 32 )
2119
- shape_lo [4 ] |= (1 << index );
2119
+ shape_lo [4 ] |= (1u << ( index ) );
2120
2120
else
2121
- shape_hi [4 ] |= (1 << (index - 32 ));
2121
+ shape_hi [4 ] |= (1u << (index - 32 ));
2122
2122
index = 8 * (7 - i ) + (7 - j );
2123
2123
if ( index < 32 )
2124
- shape_lo [5 ] |= (1 << index );
2124
+ shape_lo [5 ] |= (1u << index );
2125
2125
else
2126
- shape_hi [5 ] |= (1 << (index - 32 ));
2126
+ shape_hi [5 ] |= (1u << (index - 32 ));
2127
2127
index = 8 * (7 - j ) + i ;
2128
2128
if ( index < 32 )
2129
- shape_lo [6 ] |= (1 << index );
2129
+ shape_lo [6 ] |= (1u << index );
2130
2130
else
2131
- shape_hi [6 ] |= (1 << (index - 32 ));
2131
+ shape_hi [6 ] |= (1u << (index - 32 ));
2132
2132
index = 8 * (7 - j ) + (7 - i );
2133
2133
if ( index < 32 )
2134
- shape_lo [7 ] |= (1 << index );
2134
+ shape_lo [7 ] |= (1u << index );
2135
2135
else
2136
- shape_hi [7 ] |= (1 << (index - 32 ));
2136
+ shape_hi [7 ] |= (1u << (index - 32 ));
2137
2137
}
2138
2138
2139
2139
/* Get the corner mask */
0 commit comments