Title: Overflow when using values too large for integers · Issue #1 · lightbringer/clipper-java · GitHub
Open Graph Title: Overflow when using values too large for integers · Issue #1 · lightbringer/clipper-java
X Title: Overflow when using values too large for integers · Issue #1 · lightbringer/clipper-java
Description: Using large integers in the input paths gives overflowed values in the results. This seems to be solved by removing some casts from the library. In ClipperOffset.java, there are casts to int, where the expected type is long. These casts ...
Open Graph Description: Using large integers in the input paths gives overflowed values in the results. This seems to be solved by removing some casts from the library. In ClipperOffset.java, there are casts to int, where...
X Description: Using large integers in the input paths gives overflowed values in the results. This seems to be solved by removing some casts from the library. In ClipperOffset.java, there are casts to int, where...
Opengraph URL: https://github.com/lightbringer/clipper-java/issues/1
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overflow when using values too large for integers","articleBody":"Using large integers in the input paths gives overflowed values in the results. This seems to be solved by removing some casts from the library.\n\nIn ClipperOffset.java, there are casts to int, where the expected type is long. These casts can be removed:\n\n```\ndestPoly.add( new LongPoint( (int) Math.round( srcPoly.get( 0 ).getX() + X * delta ), (int) Math.round( srcPoly.get( 0 ).getY() + Y * delta ) ) );\n```\n\nalso in Edge.java:\n\n```\nreturn (int) (edge.getBot().getX() + Math.round( edge.deltaX * (currentY - edge.getBot().getY()) ));\n```\n","author":{"url":"https://github.com/dmac000","@type":"Person","name":"dmac000"},"datePublished":"2016-10-07T13:05:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/clipper-java/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:34fa4120-3778-22fe-258e-b49cf36d9fba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7F2:1DE8:FC75C6:141B95A:69924859 |
| html-safe-nonce | 01e74b5c839a145d089f60aef0c16d6e024376f5ce6e973e6e5037ab98d670d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0YyOjFERTg6RkM3NUM2OjE0MUI5NUE6Njk5MjQ4NTkiLCJ2aXNpdG9yX2lkIjoiMzQ4MzA0NjQ0MzkxMjE1MzE3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b29c6e695e5827e018a50a78d20d6a841923541575c95754b923cce6def1bd29 |
| hovercard-subject-tag | issue:181663735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lightbringer/clipper-java/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2606c5266b400a62be48365986c64872619ff660bf16d5be3cbc5429f256bdc1/lightbringer/clipper-java/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2606c5266b400a62be48365986c64872619ff660bf16d5be3cbc5429f256bdc1/lightbringer/clipper-java/issues/1 |
| og:image:alt | Using large integers in the input paths gives overflowed values in the results. This seems to be solved by removing some casts from the library. In ClipperOffset.java, there are casts to int, where... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmac000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/lightbringer/clipper-java git https://github.com/lightbringer/clipper-java.git |
| octolytics-dimension-user_id | 1387559 |
| octolytics-dimension-user_login | lightbringer |
| octolytics-dimension-repository_id | 53170532 |
| octolytics-dimension-repository_nwo | lightbringer/clipper-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 53170532 |
| octolytics-dimension-repository_network_root_nwo | lightbringer/clipper-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width