{"action":"created","issue":{"url":"https://api.github.com/repos/ruby/ruby/issues/1248","repository_url":"https://api.github.com/repos/ruby/ruby","labels_url":"https://api.github.com/repos/ruby/ruby/issues/1248/labels{/name}","comments_url":"https://api.github.com/repos/ruby/ruby/issues/1248/comments","events_url":"https://api.github.com/repos/ruby/ruby/issues/1248/events","html_url":"https://github.com/ruby/ruby/pull/1248","id":133555001,"number":1248,"title":"object.c: Fix misuse of counter variable.","user":{"login":"Nirma","id":882822,"avatar_url":"https://avatars.githubusercontent.com/u/882822?v=3","gravatar_id":"","url":"https://api.github.com/users/Nirma","html_url":"https://github.com/Nirma","followers_url":"https://api.github.com/users/Nirma/followers","following_url":"https://api.github.com/users/Nirma/following{/other_user}","gists_url":"https://api.github.com/users/Nirma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nirma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nirma/subscriptions","organizations_url":"https://api.github.com/users/Nirma/orgs","repos_url":"https://api.github.com/users/Nirma/repos","events_url":"https://api.github.com/users/Nirma/events{/privacy}","received_events_url":"https://api.github.com/users/Nirma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-14T16:52:52Z","updated_at":"2016-02-15T04:18:43Z","closed_at":"2016-02-15T02:18:46Z","pull_request":{"url":"https://api.github.com/repos/ruby/ruby/pulls/1248","html_url":"https://github.com/ruby/ruby/pull/1248","diff_url":"https://github.com/ruby/ruby/pull/1248.diff","patch_url":"https://github.com/ruby/ruby/pull/1248.patch"},"body":"The variable used as a counter in the loop was being initialized with the result of `numberof(conv_method_names)` just to be referenced once on line 2559, so I replaced the use of `i` on that line with a direct call to the function."},"comment":{"url":"https://api.github.com/repos/ruby/ruby/issues/comments/184060338","html_url":"https://github.com/ruby/ruby/pull/1248#issuecomment-184060338","issue_url":"https://api.github.com/repos/ruby/ruby/issues/1248","id":184060338,"user":{"login":"nobu","id":16700,"avatar_url":"https://avatars.githubusercontent.com/u/16700?v=3","gravatar_id":"","url":"https://api.github.com/users/nobu","html_url":"https://github.com/nobu","followers_url":"https://api.github.com/users/nobu/followers","following_url":"https://api.github.com/users/nobu/following{/other_user}","gists_url":"https://api.github.com/users/nobu/gists{/gist_id}","starred_url":"https://api.github.com/users/nobu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nobu/subscriptions","organizations_url":"https://api.github.com/users/nobu/orgs","repos_url":"https://api.github.com/users/nobu/repos","events_url":"https://api.github.com/users/nobu/events{/privacy}","received_events_url":"https://api.github.com/users/nobu/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T04:18:43Z","updated_at":"2016-02-15T04:18:43Z","body":"It's just a simple linear-search code."}}