Skip to content

Commit

Permalink
PDFBOX-5889: support long values for COSInteger
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921496 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lehmi committed Oct 23, 2024
1 parent 17815ab commit 89a9173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ private String convertToString( Object selectedNode )
}
if (selectedNode instanceof COSInteger)
{
return Integer.toString(((COSInteger) selectedNode).intValue());
return Long.toString(((COSInteger) selectedNode).longValue());
}
if (selectedNode instanceof COSName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ else if (nodeValue instanceof COSFloat)
}
else if (nodeValue instanceof COSInteger)
{
result = Integer.toString(((COSInteger) nodeValue).intValue());
result = Long.toString(((COSInteger) nodeValue).longValue());
}
else if (nodeValue instanceof COSString)
{
Expand Down

0 comments on commit 89a9173

Please sign in to comment.