}
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() {
*/
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.
* @return possibly <tt>ErrorEval</tt>, and <code>null</code>
*/
private static ValueEval chooseSingleElementFromAreaInternal(AreaEval ae,
- int srcCellRow, short srcCellCol) throws EvaluationException {
+ int srcCellRow, int srcCellCol) throws EvaluationException {
if(false) {
// this is too simplistic