{"action":"created","issue":{"url":"https://api.github.com/repos/docopt/docopt.rs/issues/159","labels_url":"https://api.github.com/repos/docopt/docopt.rs/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/docopt/docopt.rs/issues/159/comments","events_url":"https://api.github.com/repos/docopt/docopt.rs/issues/159/events","html_url":"https://github.com/docopt/docopt.rs/issues/159","id":123556551,"number":159,"title":"Silent integer wrapping ","user":{"login":"naicode","id":7632017,"avatar_url":"https://avatars.githubusercontent.com/u/7632017?v=3","gravatar_id":"","url":"https://api.github.com/users/naicode","html_url":"https://github.com/naicode","followers_url":"https://api.github.com/users/naicode/followers","following_url":"https://api.github.com/users/naicode/following{/other_user}","gists_url":"https://api.github.com/users/naicode/gists{/gist_id}","starred_url":"https://api.github.com/users/naicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naicode/subscriptions","organizations_url":"https://api.github.com/users/naicode/orgs","repos_url":"https://api.github.com/users/naicode/repos","events_url":"https://api.github.com/users/naicode/events{/privacy}","received_events_url":"https://api.github.com/users/naicode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docopt/docopt.rs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T21:10:29Z","updated_at":"2015-12-23T11:34:31Z","closed_at":null,"body":"Currently the Decoder wraps numbers witch are bigger then the type to decode into.\r\n\r\nE.g. for a struct with the filed `arg_n: u8` the input string `\"333\"` would lead to `77`!!!.\r\n\r\nI don't think such a wrapping  is ever intended behaviour an could lead to tricky bugs if e.g. the software is called by another program. Also it happens total silently and at last for me quite unexpected so I feel that it is like a trap witch should be removed/changed :) \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docopt/docopt.rs/issues/comments/166869486","html_url":"https://github.com/docopt/docopt.rs/issues/159#issuecomment-166869486","issue_url":"https://api.github.com/repos/docopt/docopt.rs/issues/159","id":166869486,"user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars.githubusercontent.com/u/456674?v=3","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T11:34:31Z","updated_at":"2015-12-23T11:34:31Z","body":"Definitely a bug. I think the culprit is this unchecked cast: https://github.com/docopt/docopt.rs/blob/master/src/dopt.rs#L707"}}