summaryrefslogtreecommitdiff
path: root/src/proguard/evaluation/value/ParticularFloatValue.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/proguard/evaluation/value/ParticularFloatValue.java')
-rw-r--r--src/proguard/evaluation/value/ParticularFloatValue.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/proguard/evaluation/value/ParticularFloatValue.java b/src/proguard/evaluation/value/ParticularFloatValue.java
index 335765c..59e4357 100644
--- a/src/proguard/evaluation/value/ParticularFloatValue.java
+++ b/src/proguard/evaluation/value/ParticularFloatValue.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 ParticularFloatValue extends SpecificFloatValue
public FloatValue add(FloatValue 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 FloatValue subtract(FloatValue 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 FloatValue subtractFrom(FloatValue 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 FloatValue multiply(FloatValue other)