# HG changeset patch # User Santeri Piippo # Date 1402728967 -10800 # Node ID c18c8846f6a7ab500001439e2aeffc4955e7761a # Parent 88d4973cfe1a41db408b364f7692944fb14f0196 - minor edit diff -r 88d4973cfe1a -r c18c8846f6a7 src/miscallenous.cc --- a/src/miscallenous.cc Sat Jun 14 09:48:55 2014 +0300 +++ b/src/miscallenous.cc Sat Jun 14 09:56:07 2014 +0300 @@ -127,10 +127,10 @@ double mult = floor (abs (value / snapvalue)); double out = mult * snapvalue; - if (abs (value) - (mult * snapvalue) > snapvalue / 2) + if (abs (value) - (mult * snapvalue) > snapvalue / 2) out += snapvalue; - if (value < 0 && out != 0) + if (value < 0) out = -out; return out;