{"action":"created","issue":{"url":"https://api.github.com/repos/citra-emu/citra/issues/889","labels_url":"https://api.github.com/repos/citra-emu/citra/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/citra-emu/citra/issues/889/comments","events_url":"https://api.github.com/repos/citra-emu/citra/issues/889/events","html_url":"https://github.com/citra-emu/citra/issues/889","id":91431996,"number":889,"title":"Possibly Bad Warning at Compilation","user":{"login":"zawata","id":6119870,"avatar_url":"https://avatars.githubusercontent.com/u/6119870?v=3","gravatar_id":"","url":"https://api.github.com/users/zawata","html_url":"https://github.com/zawata","followers_url":"https://api.github.com/users/zawata/followers","following_url":"https://api.github.com/users/zawata/following{/other_user}","gists_url":"https://api.github.com/users/zawata/gists{/gist_id}","starred_url":"https://api.github.com/users/zawata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zawata/subscriptions","organizations_url":"https://api.github.com/users/zawata/orgs","repos_url":"https://api.github.com/users/zawata/repos","events_url":"https://api.github.com/users/zawata/events{/privacy}","received_events_url":"https://api.github.com/users/zawata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-27T08:17:37Z","updated_at":"2015-06-27T21:26:12Z","closed_at":null,"body":"Upon Compilation in at least the MSVC this warning is spammed dozens(if not several dozen) times:\r\n```\r\nwarning C4146: unary minus operator applied to unsigned type, result still unsigned\r\n```\r\nthe warning refers to this line in vector_math.h(line 93):\r\n```C++\r\n    Vec2<decltype(-T{})> operator -() const\r\n    {\r\n        return MakeVec(-x,-y);\r\n    }\r\n```\r\nIn testing i managed to at least silence the error by removing the '-' in front of the 'T{}'\r\n\r\nHowever bringing this warning to the attention of someone who knows what they're doing more than I, he showed a bit of concern over the error.\r\n\r\nNeither of us knew what to really do about the warning so I decided to create a issue about it. I would have created a pull request for discussion but I didn't know what to change it to."},"comment":{"url":"https://api.github.com/repos/citra-emu/citra/issues/comments/116145403","html_url":"https://github.com/citra-emu/citra/issues/889#issuecomment-116145403","issue_url":"https://api.github.com/repos/citra-emu/citra/issues/889","id":116145403,"user":{"login":"zawata","id":6119870,"avatar_url":"https://avatars.githubusercontent.com/u/6119870?v=3","gravatar_id":"","url":"https://api.github.com/users/zawata","html_url":"https://github.com/zawata","followers_url":"https://api.github.com/users/zawata/followers","following_url":"https://api.github.com/users/zawata/following{/other_user}","gists_url":"https://api.github.com/users/zawata/gists{/gist_id}","starred_url":"https://api.github.com/users/zawata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zawata/subscriptions","organizations_url":"https://api.github.com/users/zawata/orgs","repos_url":"https://api.github.com/users/zawata/repos","events_url":"https://api.github.com/users/zawata/events{/privacy}","received_events_url":"https://api.github.com/users/zawata/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T21:26:12Z","updated_at":"2015-06-27T21:26:12Z","body":"@neobrain i cant find an exact line of code that throws the warning, all i found is 5 files that linked at the end of the warning\r\nthus I dont know exactly where to apply the casts\r\nthe files are :\r\ncore\\hw\\gpu.cpp\r\nvideo_core\\renderer_opengl\\gl_rasterizer.cpp\r\nvideo_core\\rasterizer.cpp\r\nhw\\y2r.cpp\r\nvideo_core\\debug_utils\\debug_utils.cpp\r\nthere is a 6th time the warning is thrown but theres no file linked to it"}}