* src/math.c (logand): Start from -1 instead of 0, so that the bitwise AND-ed
result is the intersection of bit sets instead of always 0.
* tests/math.test ("logand", "logand 3"): Test it.
Co-authored-by: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>