sort to int conversion sign extension fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce8c6149ff
commit
ba76fcf314
@ -296,9 +296,9 @@ public final class HSSFRow implements Comparable {
|
|||||||
* @param cellnum 0 based column number
|
* @param cellnum 0 based column number
|
||||||
* @return HSSFCell representing that column or null if undefined.
|
* @return HSSFCell representing that column or null if undefined.
|
||||||
*/
|
*/
|
||||||
public HSSFCell getCell(short cellnum)
|
public HSSFCell getCell(short cellnum) {
|
||||||
{
|
int ushortCellNum = cellnum & 0x0000FFFF; // avoid sign extension
|
||||||
return getCell((int)cellnum);
|
return getCell(ushortCellNum);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Get the hssfcell representing a given column (logical cell)
|
* Get the hssfcell representing a given column (logical cell)
|
||||||
|
Loading…
Reference in New Issue
Block a user