From e7e88daae77061c4e2f197dcecf91f5f4eee74d7 Mon Sep 17 00:00:00 2001 From: David Schweinsberg Date: Tue, 10 Aug 2010 11:46:30 +0000 Subject: Removed cast to short. --- src/net/java/dev/typecast/ot/table/GlyfTable.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/java/dev/typecast/ot/table/GlyfTable.java b/src/net/java/dev/typecast/ot/table/GlyfTable.java index 2d98a9a..03f519d 100644 --- a/src/net/java/dev/typecast/ot/table/GlyfTable.java +++ b/src/net/java/dev/typecast/ot/table/GlyfTable.java @@ -56,7 +56,7 @@ import java.io.DataInputStream; import java.io.IOException; /** - * @version $Id: GlyfTable.java,v 1.5 2007-01-30 03:49:46 davidsch Exp $ + * @version $Id: GlyfTable.java,v 1.6 2010-08-10 11:46:30 davidsch Exp $ * @author David Schweinsberg */ public class GlyfTable implements Table { @@ -79,7 +79,7 @@ public class GlyfTable implements Table { // Process all the simple glyphs for (int i = 0; i < maxp.getNumGlyphs(); i++) { - int len = loca.getOffset((short)(i + 1)) - loca.getOffset(i); + int len = loca.getOffset(i + 1) - loca.getOffset(i); if (len > 0) { bais.reset(); bais.skip(loca.getOffset(i)); @@ -95,7 +95,7 @@ public class GlyfTable implements Table { // Now do all the composite glyphs for (int i = 0; i < maxp.getNumGlyphs(); i++) { - int len = loca.getOffset((short)(i + 1)) - loca.getOffset(i); + int len = loca.getOffset(i + 1) - loca.getOffset(i); if (len > 0) { bais.reset(); bais.skip(loca.getOffset(i)); -- cgit v1.2.3