mood.c: Avoid overflow in update_quadratic_deviation().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 16 Mar 2016 21:48:54 +0000 (22:48 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 28 Mar 2016 17:15:55 +0000 (17:15 +0000)
commit66b8dbf57fe5e4c940caef0493e81987ced2dc4a
tree2293e66d5aa0d649dedc6630e09e33db76659f6a
parenta37f31bbe4f1b2745ef0f617cff122a2c5f95078
mood.c: Avoid overflow in update_quadratic_deviation().

The last multiplication of the expression returned can overflow. This
patch replaces the expression by an equivalent one which avoids to
multiply large numbers.
mood.c