diff options
author | David Schweinsberg <[email protected]> | 2010-08-10 11:46:30 +0000 |
---|---|---|
committer | David Schweinsberg <[email protected]> | 2010-08-10 11:46:30 +0000 |
commit | e7e88daae77061c4e2f197dcecf91f5f4eee74d7 (patch) | |
tree | 83c9ea74cd4346019c937676b83aed4656b9dc42 | |
parent | 89c0aee11d0fa7307880c359a03e15a5844e66f7 (diff) |
Removed cast to short.
-rw-r--r-- | src/net/java/dev/typecast/ot/table/GlyfTable.java | 6 |
1 files 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 <a href="mailto:[email protected]">David Schweinsberg</a> */ 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)); |