public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM] master: Use asLong() instead of asBigInteger().longValue() in IntegerUnit.
@ 2007-11-12 16:37 tthomas
0 siblings, 0 replies; only message in thread
From: tthomas @ 2007-11-12 16:37 UTC (permalink / raw)
To: frysk-cvs
The branch, master has been updated
via 65cc62fab99852356333ed0dc98bb91118d4e021 (commit)
from 90fa678ccd14e9266d81df04f888203f234f47d7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 65cc62fab99852356333ed0dc98bb91118d4e021
Author: Teresa Thomas <tthomas@redhat.com>
Date: Mon Nov 12 11:35:34 2007 -0500
Use asLong() instead of asBigInteger().longValue() in IntegerUnit.
frysk-core/frysk/value/ChangeLog
2007-11-12 Teresa Thomas <tthomas@redhat.com>
* IntegerUnit.java: Use asLong() instead of
asBigInteger().longValue().
-----------------------------------------------------------------------
Summary of changes:
frysk-core/frysk/value/ChangeLog | 5 +++++
frysk-core/frysk/value/IntegerUnit.java | 12 ++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
First 500 lines of diff:
diff --git a/frysk-core/frysk/value/ChangeLog b/frysk-core/frysk/value/ChangeLog
index d00c94f..226c16f 100644
--- a/frysk-core/frysk/value/ChangeLog
+++ b/frysk-core/frysk/value/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-12 Teresa Thomas <tthomas@redhat.com>
+
+ * IntegerUnit.java: Use asLong() instead of
+ asBigInteger().longValue().
+
2007-11-11 Stan Cox <scox@redhat.com>
* CompositeType.java (toPrint (int, PrintWriter, Location,
diff --git a/frysk-core/frysk/value/IntegerUnit.java b/frysk-core/frysk/value/IntegerUnit.java
index 7178356..663f193 100644
--- a/frysk-core/frysk/value/IntegerUnit.java
+++ b/frysk-core/frysk/value/IntegerUnit.java
@@ -126,19 +126,19 @@ public class IntegerUnit
public Value logicalAnd(Value v1, Value v2) {
return retType.createValue
- ((v1.asBigInteger().longValue() == 0 ? false : true)
- && (v2.asBigInteger().longValue() == 0 ? false : true) ? 1 : 0);
+ ((v1.asLong() == 0 ? false : true)
+ && (v2.asLong() == 0 ? false : true) ? 1 : 0);
}
public Value logicalOr(Value v1, Value v2) {
return retType.createValue
- ((v1.asBigInteger().longValue() == 0 ? false : true)
- || (v2.asBigInteger().longValue() == 0 ? false : true) ? 1 : 0);
+ ((v1.asLong() == 0 ? false : true)
+ || (v2.asLong() == 0 ? false : true) ? 1 : 0);
}
public Value logicalNegation(Value v1) {
return retType.createValue
- (v1.asBigInteger().longValue() == 0 ? 1 : 0);
+ (v1.asLong() == 0 ? 1 : 0);
}
public boolean getLogicalValue (Value v1) {
- return ((v1.asBigInteger().longValue() == 0) ? false : true);
+ return ((v1.asLong() == 0) ? false : true);
}
}
\ No newline at end of file
hooks/post-receive
--
frysk system monitor/debugger
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-12 16:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 16:37 [SCM] master: Use asLong() instead of asBigInteger().longValue() in IntegerUnit tthomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).