{"action":"created","issue":{"url":"https://api.github.com/repos/eqrion/cbindgen/issues/198","repository_url":"https://api.github.com/repos/eqrion/cbindgen","labels_url":"https://api.github.com/repos/eqrion/cbindgen/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/eqrion/cbindgen/issues/198/comments","events_url":"https://api.github.com/repos/eqrion/cbindgen/issues/198/events","html_url":"https://github.com/eqrion/cbindgen/issues/198","id":352315058,"node_id":"MDU6SXNzdWUzNTIzMTUwNTg=","number":198,"title":"cbindgen 0.6.1 produces incorrect constants","user":{"login":"crusty-dave","id":41089818,"node_id":"MDQ6VXNlcjQxMDg5ODE4","avatar_url":"https://avatars3.githubusercontent.com/u/41089818?v=4","gravatar_id":"","url":"https://api.github.com/users/crusty-dave","html_url":"https://github.com/crusty-dave","followers_url":"https://api.github.com/users/crusty-dave/followers","following_url":"https://api.github.com/users/crusty-dave/following{/other_user}","gists_url":"https://api.github.com/users/crusty-dave/gists{/gist_id}","starred_url":"https://api.github.com/users/crusty-dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crusty-dave/subscriptions","organizations_url":"https://api.github.com/users/crusty-dave/orgs","repos_url":"https://api.github.com/users/crusty-dave/repos","events_url":"https://api.github.com/users/crusty-dave/events{/privacy}","received_events_url":"https://api.github.com/users/crusty-dave/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-20T22:12:09Z","updated_at":"2018-08-21T20:54:14Z","closed_at":"2018-08-21T20:54:14Z","author_association":"NONE","body":"The following:\r\n`    pub const COOKIE_ID_LEN: usize = 10;\r\n`\r\n\r\nproduces the following:\r\n`static const uintptr_t COOKIE_ID_LEN = 10;\r\n`\r\n\r\nI believe that it should produce the following:\r\n`static const size_t COOKIE_ID_LEN = 10;\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eqrion/cbindgen/issues/comments/414818363","html_url":"https://github.com/eqrion/cbindgen/issues/198#issuecomment-414818363","issue_url":"https://api.github.com/repos/eqrion/cbindgen/issues/198","id":414818363,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDgxODM2Mw==","user":{"login":"eqrion","id":4984292,"node_id":"MDQ6VXNlcjQ5ODQyOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/4984292?v=4","gravatar_id":"","url":"https://api.github.com/users/eqrion","html_url":"https://github.com/eqrion","followers_url":"https://api.github.com/users/eqrion/followers","following_url":"https://api.github.com/users/eqrion/following{/other_user}","gists_url":"https://api.github.com/users/eqrion/gists{/gist_id}","starred_url":"https://api.github.com/users/eqrion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eqrion/subscriptions","organizations_url":"https://api.github.com/users/eqrion/orgs","repos_url":"https://api.github.com/users/eqrion/repos","events_url":"https://api.github.com/users/eqrion/events{/privacy}","received_events_url":"https://api.github.com/users/eqrion/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T20:54:14Z","updated_at":"2018-08-21T20:54:14Z","author_association":"OWNER","body":"Here's a relevant part of the [rust specification](https://doc.rust-lang.org/reference/types.html#machine-types).\r\n\r\n> Machine-dependent integer types\r\n>\r\n> The usize type is an unsigned integer type with the same number of bits as the platform's pointer type. It can represent every memory address in the process.\r\n\r\nSo I think I'll close this as correct behavior. But I'm not a compiler/standards guru so let me know if it's more complicated."}}
{"actor":{"display_login":"eqrion"}}