{"action":"created","issue":{"url":"https://api.github.com/repos/thrust/thrust/issues/814","repository_url":"https://api.github.com/repos/thrust/thrust","labels_url":"https://api.github.com/repos/thrust/thrust/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/thrust/thrust/issues/814/comments","events_url":"https://api.github.com/repos/thrust/thrust/issues/814/events","html_url":"https://github.com/thrust/thrust/issues/814","id":163573164,"number":814,"title":"execution_policy.hpp equates size_t and int","user":{"login":"clwill","id":1330725,"avatar_url":"https://avatars.githubusercontent.com/u/1330725?v=3","gravatar_id":"","url":"https://api.github.com/users/clwill","html_url":"https://github.com/clwill","followers_url":"https://api.github.com/users/clwill/followers","following_url":"https://api.github.com/users/clwill/following{/other_user}","gists_url":"https://api.github.com/users/clwill/gists{/gist_id}","starred_url":"https://api.github.com/users/clwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clwill/subscriptions","organizations_url":"https://api.github.com/users/clwill/orgs","repos_url":"https://api.github.com/users/clwill/repos","events_url":"https://api.github.com/users/clwill/events{/privacy}","received_events_url":"https://api.github.com/users/clwill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-03T18:14:35Z","updated_at":"2016-07-07T18:06:13Z","closed_at":null,"body":"`execution_policy.hpp` and several other files have many instances of\r\n\r\n    typedef int size_type;\r\n\r\nand `size_type` is later used to return or compare with `size_t` values.\r\n\r\nWhen compiling on MSVC using 64-bit, this generates dozens of warnings about loss of data.\r\n\r\nSimply changing these to\r\n\r\n    typedef size_t size_type;\r\n\r\nsolves the problem and compiles/runs on both 32 and 64-bit.\r\n\r\nSearching finds this equivalence in 1.8.3 in the following files:\r\n\r\n```\r\n- cuda_task.hpp\r\n- execution_policy.hpp\r\n- merge.ini\r\n- reduce.hpp\r\n- scatter.hpp\r\n- temporary_indirect_permutation.h\r\n```"},"comment":{"url":"https://api.github.com/repos/thrust/thrust/issues/comments/231159964","html_url":"https://github.com/thrust/thrust/issues/814#issuecomment-231159964","issue_url":"https://api.github.com/repos/thrust/thrust/issues/814","id":231159964,"user":{"login":"jaredhoberock","id":1253007,"avatar_url":"https://avatars.githubusercontent.com/u/1253007?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredhoberock","html_url":"https://github.com/jaredhoberock","followers_url":"https://api.github.com/users/jaredhoberock/followers","following_url":"https://api.github.com/users/jaredhoberock/following{/other_user}","gists_url":"https://api.github.com/users/jaredhoberock/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredhoberock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredhoberock/subscriptions","organizations_url":"https://api.github.com/users/jaredhoberock/orgs","repos_url":"https://api.github.com/users/jaredhoberock/repos","events_url":"https://api.github.com/users/jaredhoberock/events{/privacy}","received_events_url":"https://api.github.com/users/jaredhoberock/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T18:06:13Z","updated_at":"2016-07-07T18:06:13Z","body":"Thanks for the report. Can you post a small, self-contained program that reproduces these warnings and let us know which version of MSVC produces these warnings?"}}
{"actor":{"display_login":"jaredhoberock"}}