Skip to content
Snippets Groups Projects
Commit e63221e7 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix some undefined behaviour errors 2

parent 28ae47b6
No related branches found
No related tags found
No related merge requests found
......@@ -134,8 +134,10 @@ ext::vector < bool, Ts ... > & operator ^= ( ext::vector < bool, Ts ... > & A, c
while ( itB < B.end ( ) ) // A is longer or of the same size as B
* ( itA._M_p ++ ) ^= * ( itB._M_p ++ ); // word-at-a-time bitwise operation
 
while ( itA < A.end ( ) ) // The rest of A above the size of B shall be flipped
* ( itA._M_p ++ ) = ~ * ( itA._M_p );
while ( itA < A.end ( ) ) { // The rest of A above the size of B shall be flipped
* ( itA._M_p ) = ~ * ( itA._M_p );
itA._M_p ++;
}
 
return A;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment