fixed warnings in distvec.cpp