diff options
Diffstat (limited to 'src/proguard/evaluation/value/ParticularDoubleValue.java')
-rw-r--r-- | src/proguard/evaluation/value/ParticularDoubleValue.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/proguard/evaluation/value/ParticularDoubleValue.java b/src/proguard/evaluation/value/ParticularDoubleValue.java index 383cae3..05bc559 100644 --- a/src/proguard/evaluation/value/ParticularDoubleValue.java +++ b/src/proguard/evaluation/value/ParticularDoubleValue.java @@ -2,7 +2,7 @@ * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * - * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu) + * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -79,23 +79,17 @@ final class ParticularDoubleValue extends SpecificDoubleValue public DoubleValue add(DoubleValue other) { - // Careful: -0.0 + 0.0 == 0.0 - //return value == 0.0 ? other : other.add(this); - return other.add(this); + return value == 0.0 ? other : other.add(this); } public DoubleValue subtract(DoubleValue other) { - // Careful: -0.0 + 0.0 == 0.0 - //return value == 0.0 ? other.negate() : other.subtractFrom(this); - return other.subtractFrom(this); + return value == 0.0 ? other.negate() : other.subtractFrom(this); } public DoubleValue subtractFrom(DoubleValue other) { - // Careful: -0.0 + 0.0 == 0.0 - //return value == 0.0 ? other : other.subtract(this); - return other.subtract(this); + return value == 0.0 ? other : other.subtract(this); } public DoubleValue multiply(DoubleValue other) |