{"action":"opened","number":3026,"pull_request":{"url":"https://api.github.com/repos/mruby/mruby/pulls/3026","id":51079457,"html_url":"https://github.com/mruby/mruby/pull/3026","diff_url":"https://github.com/mruby/mruby/pull/3026.diff","patch_url":"https://github.com/mruby/mruby/pull/3026.patch","issue_url":"https://api.github.com/repos/mruby/mruby/issues/3026","number":3026,"state":"open","locked":false,"title":"Bugfix nagative-number lshift() bit overflow","user":{"login":"murasesyuka","id":21406,"avatar_url":"https://avatars.githubusercontent.com/u/21406?v=3","gravatar_id":"","url":"https://api.github.com/users/murasesyuka","html_url":"https://github.com/murasesyuka","followers_url":"https://api.github.com/users/murasesyuka/followers","following_url":"https://api.github.com/users/murasesyuka/following{/other_user}","gists_url":"https://api.github.com/users/murasesyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/murasesyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murasesyuka/subscriptions","organizations_url":"https://api.github.com/users/murasesyuka/orgs","repos_url":"https://api.github.com/users/murasesyuka/repos","events_url":"https://api.github.com/users/murasesyuka/events{/privacy}","received_events_url":"https://api.github.com/users/murasesyuka/received_events","type":"User","site_admin":false},"body":"related #3023 \r\n\r\nsorry negative number don't care.\r\n\r\n```ruby\r\n$ ./bin/mirb --version\r\nmruby 1.2.0 (2015-11-17) \r\n$ ./bin/mirb\r\nmirb - Embeddable Interactive Ruby Shell\r\n\r\n> -3<<29\r\n => -1610612736\r\n> -3<<30\r\n => 1073741824\r\n> -3<<31\r\n => -2147483648\r\n```\r\nthis PR fix it.\r\n\r\n```ruby\r\n$ ./bin/mirb \r\nmirb - Embeddable Interactive Ruby Shell\r\n\r\n> -3<<29\r\n => -1610612736\r\n> -3<<30\r\n => -3221225472\r\n> -3<<31\r\n => -6442450944\r\n```","created_at":"2015-11-18T12:44:15Z","updated_at":"2015-11-18T12:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f546d79346cd4bf00d3549ad3da6c13ffee1476","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mruby/mruby/pulls/3026/commits","review_comments_url":"https://api.github.com/repos/mruby/mruby/pulls/3026/comments","review_comment_url":"https://api.github.com/repos/mruby/mruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mruby/mruby/issues/3026/comments","statuses_url":"https://api.github.com/repos/mruby/mruby/statuses/ef95dcd39093e0c3bb017a37fe0ff5a7158e91a7","head":{"label":"murasesyuka:bugfix/check_minus_signedint_bitshift_overflow","ref":"bugfix/check_minus_signedint_bitshift_overflow","sha":"ef95dcd39093e0c3bb017a37fe0ff5a7158e91a7","user":{"login":"murasesyuka","id":21406,"avatar_url":"https://avatars.githubusercontent.com/u/21406?v=3","gravatar_id":"","url":"https://api.github.com/users/murasesyuka","html_url":"https://github.com/murasesyuka","followers_url":"https://api.github.com/users/murasesyuka/followers","following_url":"https://api.github.com/users/murasesyuka/following{/other_user}","gists_url":"https://api.github.com/users/murasesyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/murasesyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murasesyuka/subscriptions","organizations_url":"https://api.github.com/users/murasesyuka/orgs","repos_url":"https://api.github.com/users/murasesyuka/repos","events_url":"https://api.github.com/users/murasesyuka/events{/privacy}","received_events_url":"https://api.github.com/users/murasesyuka/received_events","type":"User","site_admin":false},"repo":{"id":9346207,"name":"mruby","full_name":"murasesyuka/mruby","owner":{"login":"murasesyuka","id":21406,"avatar_url":"https://avatars.githubusercontent.com/u/21406?v=3","gravatar_id":"","url":"https://api.github.com/users/murasesyuka","html_url":"https://github.com/murasesyuka","followers_url":"https://api.github.com/users/murasesyuka/followers","following_url":"https://api.github.com/users/murasesyuka/following{/other_user}","gists_url":"https://api.github.com/users/murasesyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/murasesyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murasesyuka/subscriptions","organizations_url":"https://api.github.com/users/murasesyuka/orgs","repos_url":"https://api.github.com/users/murasesyuka/repos","events_url":"https://api.github.com/users/murasesyuka/events{/privacy}","received_events_url":"https://api.github.com/users/murasesyuka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/murasesyuka/mruby","description":"Lightweight Ruby","fork":true,"url":"https://api.github.com/repos/murasesyuka/mruby","forks_url":"https://api.github.com/repos/murasesyuka/mruby/forks","keys_url":"https://api.github.com/repos/murasesyuka/mruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/murasesyuka/mruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/murasesyuka/mruby/teams","hooks_url":"https://api.github.com/repos/murasesyuka/mruby/hooks","issue_events_url":"https://api.github.com/repos/murasesyuka/mruby/issues/events{/number}","events_url":"https://api.github.com/repos/murasesyuka/mruby/events","assignees_url":"https://api.github.com/repos/murasesyuka/mruby/assignees{/user}","branches_url":"https://api.github.com/repos/murasesyuka/mruby/branches{/branch}","tags_url":"https://api.github.com/repos/murasesyuka/mruby/tags","blobs_url":"https://api.github.com/repos/murasesyuka/mruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/murasesyuka/mruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/murasesyuka/mruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/murasesyuka/mruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/murasesyuka/mruby/statuses/{sha}","languages_url":"https://api.github.com/repos/murasesyuka/mruby/languages","stargazers_url":"https://api.github.com/repos/murasesyuka/mruby/stargazers","contributors_url":"https://api.github.com/repos/murasesyuka/mruby/contributors","subscribers_url":"https://api.github.com/repos/murasesyuka/mruby/subscribers","subscription_url":"https://api.github.com/repos/murasesyuka/mruby/subscription","commits_url":"https://api.github.com/repos/murasesyuka/mruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/murasesyuka/mruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/murasesyuka/mruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/murasesyuka/mruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/murasesyuka/mruby/contents/{+path}","compare_url":"https://api.github.com/repos/murasesyuka/mruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/murasesyuka/mruby/merges","archive_url":"https://api.github.com/repos/murasesyuka/mruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/murasesyuka/mruby/downloads","issues_url":"https://api.github.com/repos/murasesyuka/mruby/issues{/number}","pulls_url":"https://api.github.com/repos/murasesyuka/mruby/pulls{/number}","milestones_url":"https://api.github.com/repos/murasesyuka/mruby/milestones{/number}","notifications_url":"https://api.github.com/repos/murasesyuka/mruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/murasesyuka/mruby/labels{/name}","releases_url":"https://api.github.com/repos/murasesyuka/mruby/releases{/id}","created_at":"2013-04-10T13:01:48Z","updated_at":"2015-01-14T14:41:22Z","pushed_at":"2015-11-18T12:39:33Z","git_url":"git://github.com/murasesyuka/mruby.git","ssh_url":"git@github.com:murasesyuka/mruby.git","clone_url":"https://github.com/murasesyuka/mruby.git","svn_url":"https://github.com/murasesyuka/mruby","homepage":null,"size":9863,"stargazers_count":0,"watchers_count":0,"language":"C","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":"mruby:master","ref":"master","sha":"557ab3472ada7b955fa23ebc0cc081a8e65a8b02","user":{"login":"mruby","id":1796512,"avatar_url":"https://avatars.githubusercontent.com/u/1796512?v=3","gravatar_id":"","url":"https://api.github.com/users/mruby","html_url":"https://github.com/mruby","followers_url":"https://api.github.com/users/mruby/followers","following_url":"https://api.github.com/users/mruby/following{/other_user}","gists_url":"https://api.github.com/users/mruby/gists{/gist_id}","starred_url":"https://api.github.com/users/mruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruby/subscriptions","organizations_url":"https://api.github.com/users/mruby/orgs","repos_url":"https://api.github.com/users/mruby/repos","events_url":"https://api.github.com/users/mruby/events{/privacy}","received_events_url":"https://api.github.com/users/mruby/received_events","type":"Organization","site_admin":false},"repo":{"id":4073516,"name":"mruby","full_name":"mruby/mruby","owner":{"login":"mruby","id":1796512,"avatar_url":"https://avatars.githubusercontent.com/u/1796512?v=3","gravatar_id":"","url":"https://api.github.com/users/mruby","html_url":"https://github.com/mruby","followers_url":"https://api.github.com/users/mruby/followers","following_url":"https://api.github.com/users/mruby/following{/other_user}","gists_url":"https://api.github.com/users/mruby/gists{/gist_id}","starred_url":"https://api.github.com/users/mruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruby/subscriptions","organizations_url":"https://api.github.com/users/mruby/orgs","repos_url":"https://api.github.com/users/mruby/repos","events_url":"https://api.github.com/users/mruby/events{/privacy}","received_events_url":"https://api.github.com/users/mruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mruby/mruby","description":"Lightweight Ruby","fork":false,"url":"https://api.github.com/repos/mruby/mruby","forks_url":"https://api.github.com/repos/mruby/mruby/forks","keys_url":"https://api.github.com/repos/mruby/mruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mruby/mruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mruby/mruby/teams","hooks_url":"https://api.github.com/repos/mruby/mruby/hooks","issue_events_url":"https://api.github.com/repos/mruby/mruby/issues/events{/number}","events_url":"https://api.github.com/repos/mruby/mruby/events","assignees_url":"https://api.github.com/repos/mruby/mruby/assignees{/user}","branches_url":"https://api.github.com/repos/mruby/mruby/branches{/branch}","tags_url":"https://api.github.com/repos/mruby/mruby/tags","blobs_url":"https://api.github.com/repos/mruby/mruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mruby/mruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mruby/mruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/mruby/mruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mruby/mruby/statuses/{sha}","languages_url":"https://api.github.com/repos/mruby/mruby/languages","stargazers_url":"https://api.github.com/repos/mruby/mruby/stargazers","contributors_url":"https://api.github.com/repos/mruby/mruby/contributors","subscribers_url":"https://api.github.com/repos/mruby/mruby/subscribers","subscription_url":"https://api.github.com/repos/mruby/mruby/subscription","commits_url":"https://api.github.com/repos/mruby/mruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/mruby/mruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/mruby/mruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/mruby/mruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/mruby/mruby/contents/{+path}","compare_url":"https://api.github.com/repos/mruby/mruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mruby/mruby/merges","archive_url":"https://api.github.com/repos/mruby/mruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mruby/mruby/downloads","issues_url":"https://api.github.com/repos/mruby/mruby/issues{/number}","pulls_url":"https://api.github.com/repos/mruby/mruby/pulls{/number}","milestones_url":"https://api.github.com/repos/mruby/mruby/milestones{/number}","notifications_url":"https://api.github.com/repos/mruby/mruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mruby/mruby/labels{/name}","releases_url":"https://api.github.com/repos/mruby/mruby/releases{/id}","created_at":"2012-04-19T09:11:15Z","updated_at":"2015-11-18T08:08:38Z","pushed_at":"2015-11-18T12:44:15Z","git_url":"git://github.com/mruby/mruby.git","ssh_url":"git@github.com:mruby/mruby.git","clone_url":"https://github.com/mruby/mruby.git","svn_url":"https://github.com/mruby/mruby","homepage":null,"size":15728,"stargazers_count":3216,"watchers_count":3216,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":492,"mirror_url":null,"open_issues_count":138,"forks":492,"open_issues":138,"watchers":3216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mruby/mruby/pulls/3026"},"html":{"href":"https://github.com/mruby/mruby/pull/3026"},"issue":{"href":"https://api.github.com/repos/mruby/mruby/issues/3026"},"comments":{"href":"https://api.github.com/repos/mruby/mruby/issues/3026/comments"},"review_comments":{"href":"https://api.github.com/repos/mruby/mruby/pulls/3026/comments"},"review_comment":{"href":"https://api.github.com/repos/mruby/mruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mruby/mruby/pulls/3026/commits"},"statuses":{"href":"https://api.github.com/repos/mruby/mruby/statuses/ef95dcd39093e0c3bb017a37fe0ff5a7158e91a7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":3,"changed_files":2}}