{"action":"created","issue":{"url":"https://api.github.com/repos/Gallopsled/pwntools/issues/437","labels_url":"https://api.github.com/repos/Gallopsled/pwntools/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/Gallopsled/pwntools/issues/437/comments","events_url":"https://api.github.com/repos/Gallopsled/pwntools/issues/437/events","html_url":"https://github.com/Gallopsled/pwntools/issues/437","id":54679161,"number":437,"title":"pwnlib.util.fiddling.bits is broken for negative numbers","user":{"login":"zachriggle","id":111640,"avatar_url":"https://avatars.githubusercontent.com/u/111640?v=3","gravatar_id":"","url":"https://api.github.com/users/zachriggle","html_url":"https://github.com/zachriggle","followers_url":"https://api.github.com/users/zachriggle/followers","following_url":"https://api.github.com/users/zachriggle/following{/other_user}","gists_url":"https://api.github.com/users/zachriggle/gists{/gist_id}","starred_url":"https://api.github.com/users/zachriggle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachriggle/subscriptions","organizations_url":"https://api.github.com/users/zachriggle/orgs","repos_url":"https://api.github.com/users/zachriggle/repos","events_url":"https://api.github.com/users/zachriggle/events{/privacy}","received_events_url":"https://api.github.com/users/zachriggle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T23:09:21Z","updated_at":"2015-10-14T22:17:10Z","closed_at":null,"body":"```\r\n>>> bits(-1)\r\n<never returns>\r\n```"},"comment":{"url":"https://api.github.com/repos/Gallopsled/pwntools/issues/comments/148219217","html_url":"https://github.com/Gallopsled/pwntools/issues/437#issuecomment-148219217","issue_url":"https://api.github.com/repos/Gallopsled/pwntools/issues/437","id":148219217,"user":{"login":"sam-b","id":997395,"avatar_url":"https://avatars.githubusercontent.com/u/997395?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-b","html_url":"https://github.com/sam-b","followers_url":"https://api.github.com/users/sam-b/followers","following_url":"https://api.github.com/users/sam-b/following{/other_user}","gists_url":"https://api.github.com/users/sam-b/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-b/subscriptions","organizations_url":"https://api.github.com/users/sam-b/orgs","repos_url":"https://api.github.com/users/sam-b/repos","events_url":"https://api.github.com/users/sam-b/events{/privacy}","received_events_url":"https://api.github.com/users/sam-b/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T22:17:10Z","updated_at":"2015-10-14T22:17:10Z","body":"So this never returns due to the while loop being used in bits - what is the ideal response though? An empty array or the two's compliment representation of the value? (or something else?)"}}