[Bug 37122] PVS-Studio Error: One counter for two loops