From: Nick Burch Date: Tue, 24 Mar 2009 17:00:00 +0000 (+0000) Subject: Explicit cast X-Git-Tag: REL_3_5_BETA6~87 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e947a3a6a44c4769c388a8e31b40a1fbd13bf10;p=poi.git Explicit cast git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@757904 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index 1964417366..4294f6ecdf 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -1133,10 +1133,9 @@ public class HSSFWorkbook extends POIDocument implements org.apache.poi.ss.userm * @param idx index within the set of styles * @return HSSFCellStyle object at the index */ - public HSSFCellStyle getCellStyleAt(short idx) { - ExtendedFormatRecord xfr = workbook.getExFormatAt(idx); + ExtendedFormatRecord xfr = workbook.getExFormatAt((int)idx); HSSFCellStyle style = new HSSFCellStyle(idx, xfr, this); return style;