]> git.sesse.net Git - stockfish/blobdiff - src/pawns.cpp
Use reference instead of pointer for pop_lsb() signature
[stockfish] / src / pawns.cpp
index 9a0610a0f53f08dcaf8a460cea629f5a7ed05300..81255813565ef3ac5dfdb397f575c72a8abf7e49 100644 (file)
@@ -110,7 +110,7 @@ namespace {
 
     // Loop through all pawns of the current color and score each pawn
     while (b) {
-        s = pop_lsb(&b);
+        s = pop_lsb(b);
 
         assert(pos.piece_on(s) == make_piece(Us, PAWN));
 
@@ -290,7 +290,7 @@ Score Entry::do_king_safety(const Position& pos) {
   if (pawns & attacks_bb<KING>(ksq))
       minPawnDist = 1;
   else while (pawns)
-      minPawnDist = std::min(minPawnDist, distance(ksq, pop_lsb(&pawns)));
+      minPawnDist = std::min(minPawnDist, distance(ksq, pop_lsb(pawns)));
 
   return shelter - make_score(0, 16 * minPawnDist);
 }