[Webfunds-commits] java/webfunds/ricardian Support.java
Ian Grigg
iang@cypherpunks.ai
Tue, 5 Sep 2000 15:39:20 -0400 (AST)
iang 00/09/05 15:39:20
Modified: webfunds/ricardian Support.java
Log:
minor, aligned with Perl code
Revision Changes Path
1.4 +5 -4 java/webfunds/ricardian/Support.java
Index: Support.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/Support.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Support.java 2000/09/04 15:45:18 1.3
+++ Support.java 2000/09/05 19:39:19 1.4
@@ -1,5 +1,5 @@
/*
- * $Id: Support.java,v 1.3 2000/09/04 15:45:18 iang Exp $
+ * $Id: Support.java,v 1.4 2000/09/05 19:39:19 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -172,10 +172,11 @@
String e = "double " + d + " is not a power!";
- int power;
if (equalsOne(d))
- power = 0;
- else if (d < 1)
+ return 0;
+
+ int power;
+ if (d < 1)
{
power = 0;
while (! equalsOne(d))