No code change. Fixed spelling errors in comments.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@735830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2009-01-19 21:25:45 +00:00
parent e4886c0a39
commit 260b3a1410
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ public final class MathUtils {
private static long addAndCheck(long a, long b, String msg) {
long ret;
if (a > b) {
// use symmetry to reduce boundry cases
// use symmetry to reduce boundary cases
ret = addAndCheck(b, a, msg);
} else {
// assert a <= b
@ -123,7 +123,7 @@ public final class MathUtils {
throw new ArithmeticException(msg);
}
} else {
// oppisite sign addition is always safe
// opposite sign addition is always safe
ret = a + b;
}
} else {
@ -630,7 +630,7 @@ public final class MathUtils {
long ret;
String msg = "overflow: multiply";
if (a > b) {
// use symmetry to reduce boundry cases
// use symmetry to reduce boundary cases
ret = mulAndCheck(b, a);
} else {
if (a < 0) {