{"action":"created","comment":{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/comments/37132727","id":37132727,"diff_hunk":"@@ -281,7 +281,7 @@ void pilotfile::update_stats_backout(scoring_struct *stats, bool training)\n \n \t\t\tfor (idx = 0; idx < list_size; idx++) {\n \t\t\t\tif ( p_stats->ship_kills[idx].name.compare(Ship_info[i].name) == 0 ) {\n-\t\t\t\t\tj = i;\n+\t\t\t\t\tj = idx;","path":"code/pilotfile/pilotfile.cpp","position":5,"original_position":5,"commit_id":"1f825090b0d16d4295e4298fcf314d9fbc5806e4","original_commit_id":"1f825090b0d16d4295e4298fcf314d9fbc5806e4","user":{"login":"Echelon9","id":2505282,"avatar_url":"https://avatars.githubusercontent.com/u/2505282?v=3","gravatar_id":"","url":"https://api.github.com/users/Echelon9","html_url":"https://github.com/Echelon9","followers_url":"https://api.github.com/users/Echelon9/followers","following_url":"https://api.github.com/users/Echelon9/following{/other_user}","gists_url":"https://api.github.com/users/Echelon9/gists{/gist_id}","starred_url":"https://api.github.com/users/Echelon9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Echelon9/subscriptions","organizations_url":"https://api.github.com/users/Echelon9/orgs","repos_url":"https://api.github.com/users/Echelon9/repos","events_url":"https://api.github.com/users/Echelon9/events{/privacy}","received_events_url":"https://api.github.com/users/Echelon9/received_events","type":"User","site_admin":false},"body":"Can you provide a comment that demonstrates why this is the correct change?","created_at":"2015-08-15T03:23:16Z","updated_at":"2015-08-15T03:23:16Z","html_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/274#discussion_r37132727","pull_request_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274","_links":{"self":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/comments/37132727"},"html":{"href":"https://github.com/scp-fs2open/fs2open.github.com/pull/274#discussion_r37132727"},"pull_request":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274"}}},"pull_request":{"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274","id":42448584,"html_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/274","diff_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/274.diff","patch_url":"https://github.com/scp-fs2open/fs2open.github.com/pull/274.patch","issue_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/274","number":274,"state":"open","locked":false,"title":"Fix remaining gcc/clang warnings","user":{"login":"asarium","id":1013983,"avatar_url":"https://avatars.githubusercontent.com/u/1013983?v=3","gravatar_id":"","url":"https://api.github.com/users/asarium","html_url":"https://github.com/asarium","followers_url":"https://api.github.com/users/asarium/followers","following_url":"https://api.github.com/users/asarium/following{/other_user}","gists_url":"https://api.github.com/users/asarium/gists{/gist_id}","starred_url":"https://api.github.com/users/asarium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asarium/subscriptions","organizations_url":"https://api.github.com/users/asarium/orgs","repos_url":"https://api.github.com/users/asarium/repos","events_url":"https://api.github.com/users/asarium/events{/privacy}","received_events_url":"https://api.github.com/users/asarium/received_events","type":"User","site_admin":false},"body":"For compatibility with Visual studio we need to use a macro to specify `size_t` sized format arguments. C99 says `%zu` should be used but Visual Studio only supports `%Iu`. To solve this issue I added the `PTRDIFF_T_ARG ` and `SIZE_T_ARG` macros for specifying the respective argument types.","created_at":"2015-08-14T11:57:22Z","updated_at":"2015-08-15T03:23:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f7353d2ef2eaaf3f6a61b27396ac77791c3fafe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274/commits","review_comments_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274/comments","review_comment_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/274/comments","statuses_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/statuses/1f825090b0d16d4295e4298fcf314d9fbc5806e4","head":{"label":"asarium:fix/printf","ref":"fix/printf","sha":"1f825090b0d16d4295e4298fcf314d9fbc5806e4","user":{"login":"asarium","id":1013983,"avatar_url":"https://avatars.githubusercontent.com/u/1013983?v=3","gravatar_id":"","url":"https://api.github.com/users/asarium","html_url":"https://github.com/asarium","followers_url":"https://api.github.com/users/asarium/followers","following_url":"https://api.github.com/users/asarium/following{/other_user}","gists_url":"https://api.github.com/users/asarium/gists{/gist_id}","starred_url":"https://api.github.com/users/asarium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asarium/subscriptions","organizations_url":"https://api.github.com/users/asarium/orgs","repos_url":"https://api.github.com/users/asarium/repos","events_url":"https://api.github.com/users/asarium/events{/privacy}","received_events_url":"https://api.github.com/users/asarium/received_events","type":"User","site_admin":false},"repo":{"id":9516399,"name":"fs2open.github.com","full_name":"asarium/fs2open.github.com","owner":{"login":"asarium","id":1013983,"avatar_url":"https://avatars.githubusercontent.com/u/1013983?v=3","gravatar_id":"","url":"https://api.github.com/users/asarium","html_url":"https://github.com/asarium","followers_url":"https://api.github.com/users/asarium/followers","following_url":"https://api.github.com/users/asarium/following{/other_user}","gists_url":"https://api.github.com/users/asarium/gists{/gist_id}","starred_url":"https://api.github.com/users/asarium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asarium/subscriptions","organizations_url":"https://api.github.com/users/asarium/orgs","repos_url":"https://api.github.com/users/asarium/repos","events_url":"https://api.github.com/users/asarium/events{/privacy}","received_events_url":"https://api.github.com/users/asarium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asarium/fs2open.github.com","description":"Origin Repository for SCP FreeSpace 2 Open","fork":true,"url":"https://api.github.com/repos/asarium/fs2open.github.com","forks_url":"https://api.github.com/repos/asarium/fs2open.github.com/forks","keys_url":"https://api.github.com/repos/asarium/fs2open.github.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asarium/fs2open.github.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asarium/fs2open.github.com/teams","hooks_url":"https://api.github.com/repos/asarium/fs2open.github.com/hooks","issue_events_url":"https://api.github.com/repos/asarium/fs2open.github.com/issues/events{/number}","events_url":"https://api.github.com/repos/asarium/fs2open.github.com/events","assignees_url":"https://api.github.com/repos/asarium/fs2open.github.com/assignees{/user}","branches_url":"https://api.github.com/repos/asarium/fs2open.github.com/branches{/branch}","tags_url":"https://api.github.com/repos/asarium/fs2open.github.com/tags","blobs_url":"https://api.github.com/repos/asarium/fs2open.github.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asarium/fs2open.github.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asarium/fs2open.github.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/asarium/fs2open.github.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asarium/fs2open.github.com/statuses/{sha}","languages_url":"https://api.github.com/repos/asarium/fs2open.github.com/languages","stargazers_url":"https://api.github.com/repos/asarium/fs2open.github.com/stargazers","contributors_url":"https://api.github.com/repos/asarium/fs2open.github.com/contributors","subscribers_url":"https://api.github.com/repos/asarium/fs2open.github.com/subscribers","subscription_url":"https://api.github.com/repos/asarium/fs2open.github.com/subscription","commits_url":"https://api.github.com/repos/asarium/fs2open.github.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/asarium/fs2open.github.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/asarium/fs2open.github.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/asarium/fs2open.github.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/asarium/fs2open.github.com/contents/{+path}","compare_url":"https://api.github.com/repos/asarium/fs2open.github.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asarium/fs2open.github.com/merges","archive_url":"https://api.github.com/repos/asarium/fs2open.github.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asarium/fs2open.github.com/downloads","issues_url":"https://api.github.com/repos/asarium/fs2open.github.com/issues{/number}","pulls_url":"https://api.github.com/repos/asarium/fs2open.github.com/pulls{/number}","milestones_url":"https://api.github.com/repos/asarium/fs2open.github.com/milestones{/number}","notifications_url":"https://api.github.com/repos/asarium/fs2open.github.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asarium/fs2open.github.com/labels{/name}","releases_url":"https://api.github.com/repos/asarium/fs2open.github.com/releases{/id}","created_at":"2013-04-18T07:56:53Z","updated_at":"2015-05-08T20:25:10Z","pushed_at":"2015-08-14T18:35:20Z","git_url":"git://github.com/asarium/fs2open.github.com.git","ssh_url":"git@github.com:asarium/fs2open.github.com.git","clone_url":"https://github.com/asarium/fs2open.github.com.git","svn_url":"https://github.com/asarium/fs2open.github.com","homepage":null,"size":116720,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"scp-fs2open:master","ref":"master","sha":"ef34e5e39ea58c0f21eefa9450ee12d27171b695","user":{"login":"scp-fs2open","id":3302806,"avatar_url":"https://avatars.githubusercontent.com/u/3302806?v=3","gravatar_id":"","url":"https://api.github.com/users/scp-fs2open","html_url":"https://github.com/scp-fs2open","followers_url":"https://api.github.com/users/scp-fs2open/followers","following_url":"https://api.github.com/users/scp-fs2open/following{/other_user}","gists_url":"https://api.github.com/users/scp-fs2open/gists{/gist_id}","starred_url":"https://api.github.com/users/scp-fs2open/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scp-fs2open/subscriptions","organizations_url":"https://api.github.com/users/scp-fs2open/orgs","repos_url":"https://api.github.com/users/scp-fs2open/repos","events_url":"https://api.github.com/users/scp-fs2open/events{/privacy}","received_events_url":"https://api.github.com/users/scp-fs2open/received_events","type":"Organization","site_admin":false},"repo":{"id":7700081,"name":"fs2open.github.com","full_name":"scp-fs2open/fs2open.github.com","owner":{"login":"scp-fs2open","id":3302806,"avatar_url":"https://avatars.githubusercontent.com/u/3302806?v=3","gravatar_id":"","url":"https://api.github.com/users/scp-fs2open","html_url":"https://github.com/scp-fs2open","followers_url":"https://api.github.com/users/scp-fs2open/followers","following_url":"https://api.github.com/users/scp-fs2open/following{/other_user}","gists_url":"https://api.github.com/users/scp-fs2open/gists{/gist_id}","starred_url":"https://api.github.com/users/scp-fs2open/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scp-fs2open/subscriptions","organizations_url":"https://api.github.com/users/scp-fs2open/orgs","repos_url":"https://api.github.com/users/scp-fs2open/repos","events_url":"https://api.github.com/users/scp-fs2open/events{/privacy}","received_events_url":"https://api.github.com/users/scp-fs2open/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scp-fs2open/fs2open.github.com","description":"Origin Repository for SCP FreeSpace 2 Open","fork":false,"url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com","forks_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/forks","keys_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/teams","hooks_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/hooks","issue_events_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/events{/number}","events_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/events","assignees_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/assignees{/user}","branches_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/branches{/branch}","tags_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/tags","blobs_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/statuses/{sha}","languages_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/languages","stargazers_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/stargazers","contributors_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/contributors","subscribers_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/subscribers","subscription_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/subscription","commits_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/contents/{+path}","compare_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/merges","archive_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/downloads","issues_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues{/number}","pulls_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls{/number}","milestones_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/milestones{/number}","notifications_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/labels{/name}","releases_url":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/releases{/id}","created_at":"2013-01-19T06:10:53Z","updated_at":"2015-08-03T12:11:24Z","pushed_at":"2015-08-14T19:27:32Z","git_url":"git://github.com/scp-fs2open/fs2open.github.com.git","ssh_url":"git@github.com:scp-fs2open/fs2open.github.com.git","clone_url":"https://github.com/scp-fs2open/fs2open.github.com.git","svn_url":"https://github.com/scp-fs2open/fs2open.github.com","homepage":null,"size":117267,"stargazers_count":22,"watchers_count":22,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":41,"mirror_url":null,"open_issues_count":18,"forks":41,"open_issues":18,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274"},"html":{"href":"https://github.com/scp-fs2open/fs2open.github.com/pull/274"},"issue":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/274"},"comments":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/issues/274/comments"},"review_comments":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274/comments"},"review_comment":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/pulls/274/commits"},"statuses":{"href":"https://api.github.com/repos/scp-fs2open/fs2open.github.com/statuses/1f825090b0d16d4295e4298fcf314d9fbc5806e4"}}}}