diff --git a/src/java/org/apache/poi/hssf/record/formula/eval/AreaEval.java b/src/java/org/apache/poi/hssf/record/formula/eval/AreaEval.java
index 4c5fb9f68..733a6253e 100644
--- a/src/java/org/apache/poi/hssf/record/formula/eval/AreaEval.java
+++ b/src/java/org/apache/poi/hssf/record/formula/eval/AreaEval.java
@@ -68,7 +68,7 @@ public interface AreaEval extends TwoDEval {
* returns true if the specified col is in range
* @param col
*/
- boolean containsColumn(short col);
+ boolean containsColumn(int col);
/**
* returns true if the specified row is in range
diff --git a/src/java/org/apache/poi/hssf/record/formula/eval/AreaEvalBase.java b/src/java/org/apache/poi/hssf/record/formula/eval/AreaEvalBase.java
index 12e21cf9a..4d04fd126 100644
--- a/src/java/org/apache/poi/hssf/record/formula/eval/AreaEvalBase.java
+++ b/src/java/org/apache/poi/hssf/record/formula/eval/AreaEvalBase.java
@@ -87,11 +87,11 @@ public abstract class AreaEvalBase implements AreaEval {
}
public final boolean containsRow(int row) {
- return (_firstRow <= row) && (_lastRow >= row);
+ return _firstRow <= row && _lastRow >= row;
}
- public final boolean containsColumn(short col) {
- return (_firstColumn <= col) && (_lastColumn >= col);
+ public final boolean containsColumn(int col) {
+ return _firstColumn <= col && _lastColumn >= col;
}
public final boolean isColumn() {
diff --git a/src/java/org/apache/poi/hssf/record/formula/eval/OperandResolver.java b/src/java/org/apache/poi/hssf/record/formula/eval/OperandResolver.java
index 50e9dd058..f18abce00 100644
--- a/src/java/org/apache/poi/hssf/record/formula/eval/OperandResolver.java
+++ b/src/java/org/apache/poi/hssf/record/formula/eval/OperandResolver.java
@@ -102,7 +102,7 @@ public final class OperandResolver {
*/
public static ValueEval chooseSingleElementFromArea(AreaEval ae,
int srcCellRow, int srcCellCol) throws EvaluationException {
- ValueEval result = chooseSingleElementFromAreaInternal(ae, srcCellRow, (short) srcCellCol);
+ ValueEval result = chooseSingleElementFromAreaInternal(ae, srcCellRow, srcCellCol);
if(result == null) {
// This seems to be required because AreaEval.values() array may contain nulls.
// perhaps that should not be allowed.
@@ -119,7 +119,7 @@ public final class OperandResolver {
* @return possibly ErrorEval, and null
*/
private static ValueEval chooseSingleElementFromAreaInternal(AreaEval ae,
- int srcCellRow, short srcCellCol) throws EvaluationException {
+ int srcCellRow, int srcCellCol) throws EvaluationException {
if(false) {
// this is too simplistic