]> source.dussan.org Git - poi.git/commitdiff
Explicit cast
authorNick Burch <nick@apache.org>
Tue, 24 Mar 2009 17:00:00 +0000 (17:00 +0000)
committerNick Burch <nick@apache.org>
Tue, 24 Mar 2009 17:00:00 +0000 (17:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@757904 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java

index 1964417366c998f9eed1c4084f39708b3d1ba6c5..4294f6ecdf44dfdde028f5b735fcb9a15345a684 100644 (file)
@@ -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;