{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/140","labels_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/140/comments","events_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/140/events","html_url":"https://github.com/KhronosGroup/glslang/issues/140","id":127814520,"number":140,"title":"[GLSL] 'mod' ambigous signature.","user":{"login":"Duttenheim","id":6490176,"avatar_url":"https://avatars.githubusercontent.com/u/6490176?v=3","gravatar_id":"","url":"https://api.github.com/users/Duttenheim","html_url":"https://github.com/Duttenheim","followers_url":"https://api.github.com/users/Duttenheim/followers","following_url":"https://api.github.com/users/Duttenheim/following{/other_user}","gists_url":"https://api.github.com/users/Duttenheim/gists{/gist_id}","starred_url":"https://api.github.com/users/Duttenheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duttenheim/subscriptions","organizations_url":"https://api.github.com/users/Duttenheim/orgs","repos_url":"https://api.github.com/users/Duttenheim/repos","events_url":"https://api.github.com/users/Duttenheim/events{/privacy}","received_events_url":"https://api.github.com/users/Duttenheim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KhronosGroup/glslang/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-21T00:02:48Z","updated_at":"2016-01-23T16:41:40Z","closed_at":"2016-01-23T16:41:40Z","body":"Using the glslang compiler as a validator in an intermediate compiler, getting this error:\r\n\r\n**'mod' : ambiguous function signature match: multiple signatures match under implicit type conversion**\r\n\r\nFrom this code:\r\n```c\r\nuint\r\nConvertFrom2D(uvec2 coord, uint maxX, uint maxY)\r\n{\r\n\treturn uint(mod(coord.x, maxX) + uint(coord.y / maxY));\r\n}\r\n```\r\n\r\nI've also tried this code:\r\n```c\r\nuint\r\nConvertFrom2D(uvec2 coord, uint maxX, uint maxY)\r\n{\r\n\tconst uint x = coord.x;\r\n\tconst uint y = coord.y;\r\n\treturn uint(mod(x, maxX) + uint(y / maxY));\r\n}\r\n```\r\n\r\nBut got the same results. "},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/comments/174198897","html_url":"https://github.com/KhronosGroup/glslang/issues/140#issuecomment-174198897","issue_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/140","id":174198897,"user":{"login":"johnkslang","id":5607714,"avatar_url":"https://avatars.githubusercontent.com/u/5607714?v=3","gravatar_id":"","url":"https://api.github.com/users/johnkslang","html_url":"https://github.com/johnkslang","followers_url":"https://api.github.com/users/johnkslang/followers","following_url":"https://api.github.com/users/johnkslang/following{/other_user}","gists_url":"https://api.github.com/users/johnkslang/gists{/gist_id}","starred_url":"https://api.github.com/users/johnkslang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnkslang/subscriptions","organizations_url":"https://api.github.com/users/johnkslang/orgs","repos_url":"https://api.github.com/users/johnkslang/repos","events_url":"https://api.github.com/users/johnkslang/events{/privacy}","received_events_url":"https://api.github.com/users/johnkslang/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T16:41:40Z","updated_at":"2016-01-23T16:41:40Z","body":"Okay, this is now covered by issue #142, closing."}}