{"action":"closed","issue":{"url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/1021","labels_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/1021/comments","events_url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/issues/1021/events","html_url":"https://github.com/adambard/learnxinyminutes-docs/issues/1021","id":65110676,"number":1021,"title":"C: negation and shift","user":{"login":"jcmvbkbc","id":166731,"avatar_url":"https://avatars.githubusercontent.com/u/166731?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmvbkbc","html_url":"https://github.com/jcmvbkbc","followers_url":"https://api.github.com/users/jcmvbkbc/followers","following_url":"https://api.github.com/users/jcmvbkbc/following{/other_user}","gists_url":"https://api.github.com/users/jcmvbkbc/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmvbkbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmvbkbc/subscriptions","organizations_url":"https://api.github.com/users/jcmvbkbc/orgs","repos_url":"https://api.github.com/users/jcmvbkbc/repos","events_url":"https://api.github.com/users/jcmvbkbc/events{/privacy}","received_events_url":"https://api.github.com/users/jcmvbkbc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/adambard/learnxinyminutes-docs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T00:21:03Z","updated_at":"2015-03-30T15:57:45Z","closed_at":"2015-03-30T15:57:45Z","body":"> ~0x0F; // => 0xF0 (bitwise negation, \"1's complement\")\r\n\r\nThis looks like byte negation, but 0x0f is of type int. A typical result could be 0xfffffff0.\r\n\r\n>// - shifting into the sign bit of a signed integer (int a = 1 << 32)\r\n\r\nShould be (int a = 1 << 31), as 31'st bit is the sign bit of a 32-bit wide int."}}