fixing SVM negative value rounding

as discussed in code.opencv.org/issues/3982