{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2691","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2691/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2691/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2691/events","html_url":"https://github.com/dotnet/roslyn/issues/2691","id":75774423,"number":2691,"title":"Invalid simplifications","user":{"login":"tmat","id":41759,"avatar_url":"https://avatars.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/2%20-%20Ready","name":"2 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Analyzers","name":"Area-Analyzers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"mavasani","id":10605811,"avatar_url":"https://avatars.githubusercontent.com/u/10605811?v=3","gravatar_id":"","url":"https://api.github.com/users/mavasani","html_url":"https://github.com/mavasani","followers_url":"https://api.github.com/users/mavasani/followers","following_url":"https://api.github.com/users/mavasani/following{/other_user}","gists_url":"https://api.github.com/users/mavasani/gists{/gist_id}","starred_url":"https://api.github.com/users/mavasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavasani/subscriptions","organizations_url":"https://api.github.com/users/mavasani/orgs","repos_url":"https://api.github.com/users/mavasani/repos","events_url":"https://api.github.com/users/mavasani/events{/privacy}","received_events_url":"https://api.github.com/users/mavasani/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/1","html_url":"https://github.com/dotnet/roslyn/milestones/1.0%20(stable)","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/1/labels","id":937397,"number":1,"title":"1.0 (stable)","description":"This is our 1.0 Milestone. ","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":88,"closed_issues":456,"state":"open","created_at":"2015-01-15T20:45:24Z","updated_at":"2015-05-21T19:49:12Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-12T23:16:43Z","updated_at":"2015-05-21T19:49:12Z","closed_at":"2015-05-21T19:49:12Z","body":"The IDE incorrectly considers casts (float*) and (uint) to be unnecessary in the following cases:\r\n\r\n```C#\r\n        public float ReadSingle(byte* ptr)\r\n        {\r\n            return *(float*)ptr;\r\n        }\r\n```\r\n\r\n```C#\r\n        private readonly byte* _endPointer;\r\n        private byte* _currentPointer;\r\n\r\n        private void CheckBounds(int byteCount)\r\n        {\r\n            if (unchecked((uint)byteCount) > (_endPointer - _currentPointer))\r\n            {\r\n                ThrowOutOfBounds();\r\n            }\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/104401477","html_url":"https://github.com/dotnet/roslyn/issues/2691#issuecomment-104401477","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/2691","id":104401477,"user":{"login":"mavasani","id":10605811,"avatar_url":"https://avatars.githubusercontent.com/u/10605811?v=3","gravatar_id":"","url":"https://api.github.com/users/mavasani","html_url":"https://github.com/mavasani","followers_url":"https://api.github.com/users/mavasani/followers","following_url":"https://api.github.com/users/mavasani/following{/other_user}","gists_url":"https://api.github.com/users/mavasani/gists{/gist_id}","starred_url":"https://api.github.com/users/mavasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavasani/subscriptions","organizations_url":"https://api.github.com/users/mavasani/orgs","repos_url":"https://api.github.com/users/mavasani/repos","events_url":"https://api.github.com/users/mavasani/events{/privacy}","received_events_url":"https://api.github.com/users/mavasani/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T19:49:12Z","updated_at":"2015-05-21T19:49:12Z","body":"Fixed with https://github.com/dotnet/roslyn/commit/b309d296329829e2f8ef4cda4e42ccb547dd6903 in stabilization branch."}}