{"action":"closed","issue":{"url":"https://api.github.com/repos/bluejekyll/pg-extend-rs/issues/2","repository_url":"https://api.github.com/repos/bluejekyll/pg-extend-rs","labels_url":"https://api.github.com/repos/bluejekyll/pg-extend-rs/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bluejekyll/pg-extend-rs/issues/2/comments","events_url":"https://api.github.com/repos/bluejekyll/pg-extend-rs/issues/2/events","html_url":"https://github.com/bluejekyll/pg-extend-rs/issues/2","id":395017526,"node_id":"MDU6SXNzdWUzOTUwMTc1MjY=","number":2,"title":"Fails to compile on Linux due to mismatched u8","user":{"login":"stillinbeta","id":523632,"node_id":"MDQ6VXNlcjUyMzYzMg==","avatar_url":"https://avatars2.githubusercontent.com/u/523632?v=4","gravatar_id":"","url":"https://api.github.com/users/stillinbeta","html_url":"https://github.com/stillinbeta","followers_url":"https://api.github.com/users/stillinbeta/followers","following_url":"https://api.github.com/users/stillinbeta/following{/other_user}","gists_url":"https://api.github.com/users/stillinbeta/gists{/gist_id}","starred_url":"https://api.github.com/users/stillinbeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stillinbeta/subscriptions","organizations_url":"https://api.github.com/users/stillinbeta/orgs","repos_url":"https://api.github.com/users/stillinbeta/repos","events_url":"https://api.github.com/users/stillinbeta/events{/privacy}","received_events_url":"https://api.github.com/users/stillinbeta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-12-31T18:35:40Z","updated_at":"2019-01-01T15:49:01Z","closed_at":"2019-01-01T15:49:01Z","author_association":"NONE","body":"Environment:\r\n```\r\n$ uname -a\r\nLinux penguin 4.14.67-07156-gc116f2c8c400 #1 SMP PREEMPT Sun Sep 9 14:20:03 PDT 2018 aarch64 GNU/Linux\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID: Debian\r\nDescription:    Debian GNU/Linux 9.5 (stretch)\r\nRelease:        9.5\r\nCodename:       stretch\r\n$ cargo version\r\ncargo 1.33.0-nightly (0d1f1bbea 2018-12-19)\r\n```\r\n\r\nErrors:\r\n```\r\nerror[E0308]: mismatched types\r\n  --> pg-extend/src/lib.rs:68:30\r\n   |\r\n68 |     let args_null: &[bool] = &func_call_info.argnull[..num_args];\r\n   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bool, found u8\r\n   |\r\n   = note: expected type `&[bool]`\r\n              found type `&[u8]`\r\n\r\nerror[E0308]: mismatched types\r\n  --> pg-extend/src/pg_error.rs:85:12\r\n   |\r\n85 |         if pg_sys::errstart(errlevel, file, line, func_name, ERR_DOMAIN.as_ptr() as *const c_char) {\r\n   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected bool, found u8\r\n```\r\n\r\nFunctionCallArgsData is defined as:\r\n\r\n```rust\r\npub struct FunctionCallInfoData { pub flinfo : * mut FmgrInfo , pub context : fmNodePtr , pub resultinfo : fmNodePtr , pub fncollation : Oid , pub isnull : bool_ , pub nargs : :: std :: os :: raw :: c_short , pub arg : [ Datum ; 100usize ] , pub argnull : [ bool_ ; 100usize ] , }\r\n```\r\n\r\nWhere `bool_` is:\r\n\r\n```rust\r\npub type bool_ = :: std :: os :: raw :: c_char ;\r\n```\r\n[Full gist here](https://gist.github.com/881e2086559d0ac5a4a60981cc179eb0)"}}
{"actor":{"display_login":"bluejekyll"}}