{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28978","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28978/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28978/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28978/events","html_url":"https://github.com/rust-lang/rust/issues/28978","id":110895300,"number":28978,"title":"std::os::unix::fs::MetadataExt::size() silently truncates file size on Android","user":{"login":"eefriedman","id":12769964,"avatar_url":"https://avatars.githubusercontent.com/u/12769964?v=3","gravatar_id":"","url":"https://api.github.com/users/eefriedman","html_url":"https://github.com/eefriedman","followers_url":"https://api.github.com/users/eefriedman/followers","following_url":"https://api.github.com/users/eefriedman/following{/other_user}","gists_url":"https://api.github.com/users/eefriedman/gists{/gist_id}","starred_url":"https://api.github.com/users/eefriedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eefriedman/subscriptions","organizations_url":"https://api.github.com/users/eefriedman/orgs","repos_url":"https://api.github.com/users/eefriedman/repos","events_url":"https://api.github.com/users/eefriedman/events{/privacy}","received_events_url":"https://api.github.com/users/eefriedman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-android","name":"A-android","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-libs","name":"A-libs","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-12T01:10:23Z","updated_at":"2016-02-14T05:16:15Z","closed_at":"2016-02-14T05:16:15Z","body":"The implementation of size() looks like this:\r\n```rust\r\nfn size(&self) -> raw::off_t { self.as_raw_stat().st_size as raw::off_t }\r\n```\r\nThe field `st_size` has type `c_longlong`, and the type `raw::off_t` has type `i32` on 32-bit Android.  The combination doesn't work well."}}