{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/shopspring/decimal/pulls/17","id":55936591,"html_url":"https://github.com/shopspring/decimal/pull/17","diff_url":"https://github.com/shopspring/decimal/pull/17.diff","patch_url":"https://github.com/shopspring/decimal/pull/17.patch","issue_url":"https://api.github.com/repos/shopspring/decimal/issues/17","number":17,"state":"open","locked":false,"title":"Prevent unnecessary int64 overflow in NewFromFloat","user":{"login":"nvanbenschoten","id":5438456,"avatar_url":"https://avatars.githubusercontent.com/u/5438456?v=3","gravatar_id":"","url":"https://api.github.com/users/nvanbenschoten","html_url":"https://github.com/nvanbenschoten","followers_url":"https://api.github.com/users/nvanbenschoten/followers","following_url":"https://api.github.com/users/nvanbenschoten/following{/other_user}","gists_url":"https://api.github.com/users/nvanbenschoten/gists{/gist_id}","starred_url":"https://api.github.com/users/nvanbenschoten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvanbenschoten/subscriptions","organizations_url":"https://api.github.com/users/nvanbenschoten/orgs","repos_url":"https://api.github.com/users/nvanbenschoten/repos","events_url":"https://api.github.com/users/nvanbenschoten/events{/privacy}","received_events_url":"https://api.github.com/users/nvanbenschoten/received_events","type":"User","site_admin":false},"body":"Previously, a float64 that would overflow an int64 in `NewFromFloat ` would attempt to use the fast path. This is now prevented.","created_at":"2016-01-13T18:31:12Z","updated_at":"2016-01-13T18:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shopspring/decimal/pulls/17/commits","review_comments_url":"https://api.github.com/repos/shopspring/decimal/pulls/17/comments","review_comment_url":"https://api.github.com/repos/shopspring/decimal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shopspring/decimal/issues/17/comments","statuses_url":"https://api.github.com/repos/shopspring/decimal/statuses/eae6d13435116dfc37038a23537ecb24c1a474b8","head":{"label":"cockroachdb:nvanbenschoten/int_overflow","ref":"nvanbenschoten/int_overflow","sha":"eae6d13435116dfc37038a23537ecb24c1a474b8","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":49591905,"name":"decimal","full_name":"cockroachdb/decimal","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/decimal","description":"Arbitrary-precision fixed-point decimal numbers in go","fork":true,"url":"https://api.github.com/repos/cockroachdb/decimal","forks_url":"https://api.github.com/repos/cockroachdb/decimal/forks","keys_url":"https://api.github.com/repos/cockroachdb/decimal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/decimal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/decimal/teams","hooks_url":"https://api.github.com/repos/cockroachdb/decimal/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/decimal/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/decimal/events","assignees_url":"https://api.github.com/repos/cockroachdb/decimal/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/decimal/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/decimal/tags","blobs_url":"https://api.github.com/repos/cockroachdb/decimal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/decimal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/decimal/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/decimal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/decimal/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/decimal/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/decimal/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/decimal/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/decimal/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/decimal/subscription","commits_url":"https://api.github.com/repos/cockroachdb/decimal/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/decimal/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/decimal/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/decimal/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/decimal/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/decimal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/decimal/merges","archive_url":"https://api.github.com/repos/cockroachdb/decimal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/decimal/downloads","issues_url":"https://api.github.com/repos/cockroachdb/decimal/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/decimal/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/decimal/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/decimal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/decimal/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/decimal/releases{/id}","created_at":"2016-01-13T18:04:31Z","updated_at":"2016-01-13T18:04:32Z","pushed_at":"2016-01-13T18:29:38Z","git_url":"git://github.com/cockroachdb/decimal.git","ssh_url":"git@github.com:cockroachdb/decimal.git","clone_url":"https://github.com/cockroachdb/decimal.git","svn_url":"https://github.com/cockroachdb/decimal","homepage":"","size":57,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shopspring:master","ref":"master","sha":"f95dd20cca6dca7c51bb39d1d63ca2f9605cd78b","user":{"login":"shopspring","id":11196412,"avatar_url":"https://avatars.githubusercontent.com/u/11196412?v=3","gravatar_id":"","url":"https://api.github.com/users/shopspring","html_url":"https://github.com/shopspring","followers_url":"https://api.github.com/users/shopspring/followers","following_url":"https://api.github.com/users/shopspring/following{/other_user}","gists_url":"https://api.github.com/users/shopspring/gists{/gist_id}","starred_url":"https://api.github.com/users/shopspring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopspring/subscriptions","organizations_url":"https://api.github.com/users/shopspring/orgs","repos_url":"https://api.github.com/users/shopspring/repos","events_url":"https://api.github.com/users/shopspring/events{/privacy}","received_events_url":"https://api.github.com/users/shopspring/received_events","type":"Organization","site_admin":false},"repo":{"id":31333618,"name":"decimal","full_name":"shopspring/decimal","owner":{"login":"shopspring","id":11196412,"avatar_url":"https://avatars.githubusercontent.com/u/11196412?v=3","gravatar_id":"","url":"https://api.github.com/users/shopspring","html_url":"https://github.com/shopspring","followers_url":"https://api.github.com/users/shopspring/followers","following_url":"https://api.github.com/users/shopspring/following{/other_user}","gists_url":"https://api.github.com/users/shopspring/gists{/gist_id}","starred_url":"https://api.github.com/users/shopspring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shopspring/subscriptions","organizations_url":"https://api.github.com/users/shopspring/orgs","repos_url":"https://api.github.com/users/shopspring/repos","events_url":"https://api.github.com/users/shopspring/events{/privacy}","received_events_url":"https://api.github.com/users/shopspring/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shopspring/decimal","description":"Arbitrary-precision fixed-point decimal numbers in go","fork":false,"url":"https://api.github.com/repos/shopspring/decimal","forks_url":"https://api.github.com/repos/shopspring/decimal/forks","keys_url":"https://api.github.com/repos/shopspring/decimal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shopspring/decimal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shopspring/decimal/teams","hooks_url":"https://api.github.com/repos/shopspring/decimal/hooks","issue_events_url":"https://api.github.com/repos/shopspring/decimal/issues/events{/number}","events_url":"https://api.github.com/repos/shopspring/decimal/events","assignees_url":"https://api.github.com/repos/shopspring/decimal/assignees{/user}","branches_url":"https://api.github.com/repos/shopspring/decimal/branches{/branch}","tags_url":"https://api.github.com/repos/shopspring/decimal/tags","blobs_url":"https://api.github.com/repos/shopspring/decimal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shopspring/decimal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shopspring/decimal/git/refs{/sha}","trees_url":"https://api.github.com/repos/shopspring/decimal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shopspring/decimal/statuses/{sha}","languages_url":"https://api.github.com/repos/shopspring/decimal/languages","stargazers_url":"https://api.github.com/repos/shopspring/decimal/stargazers","contributors_url":"https://api.github.com/repos/shopspring/decimal/contributors","subscribers_url":"https://api.github.com/repos/shopspring/decimal/subscribers","subscription_url":"https://api.github.com/repos/shopspring/decimal/subscription","commits_url":"https://api.github.com/repos/shopspring/decimal/commits{/sha}","git_commits_url":"https://api.github.com/repos/shopspring/decimal/git/commits{/sha}","comments_url":"https://api.github.com/repos/shopspring/decimal/comments{/number}","issue_comment_url":"https://api.github.com/repos/shopspring/decimal/issues/comments{/number}","contents_url":"https://api.github.com/repos/shopspring/decimal/contents/{+path}","compare_url":"https://api.github.com/repos/shopspring/decimal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shopspring/decimal/merges","archive_url":"https://api.github.com/repos/shopspring/decimal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shopspring/decimal/downloads","issues_url":"https://api.github.com/repos/shopspring/decimal/issues{/number}","pulls_url":"https://api.github.com/repos/shopspring/decimal/pulls{/number}","milestones_url":"https://api.github.com/repos/shopspring/decimal/milestones{/number}","notifications_url":"https://api.github.com/repos/shopspring/decimal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shopspring/decimal/labels{/name}","releases_url":"https://api.github.com/repos/shopspring/decimal/releases{/id}","created_at":"2015-02-25T20:12:57Z","updated_at":"2016-01-13T08:06:38Z","pushed_at":"2016-01-13T18:31:12Z","git_url":"git://github.com/shopspring/decimal.git","ssh_url":"git@github.com:shopspring/decimal.git","clone_url":"https://github.com/shopspring/decimal.git","svn_url":"https://github.com/shopspring/decimal","homepage":"","size":66,"stargazers_count":212,"watchers_count":212,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":6,"forks":33,"open_issues":6,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shopspring/decimal/pulls/17"},"html":{"href":"https://github.com/shopspring/decimal/pull/17"},"issue":{"href":"https://api.github.com/repos/shopspring/decimal/issues/17"},"comments":{"href":"https://api.github.com/repos/shopspring/decimal/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/shopspring/decimal/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/shopspring/decimal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shopspring/decimal/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/shopspring/decimal/statuses/eae6d13435116dfc37038a23537ecb24c1a474b8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":2}}