{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/352","labels_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/352/comments","events_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/352/events","html_url":"https://github.com/HaxeFoundation/hxcpp/issues/352","id":124770854,"number":352,"title":"Const qualifier error","user":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T14:42:05Z","updated_at":"2016-01-04T14:49:00Z","closed_at":null,"body":"The following used to work, but now I'm getting an error:\r\n\r\n```\r\nfunction onSample( buf : cpp.Pointer<cpp.Float32>, len : Int ) {\r\n  var data : haxe.io.BytesData = [];\r\n  cpp.NativeArray.setUnmanagedData(data, buf.reinterpret(), len<<2);\r\n  foo( haxe.io.Float32Array.fromBytes(haxe.io.Bytes.ofData(data)) );\r\n}\r\n```\r\n\r\nIt says `cannot convert argument 1 from const unsigned char * to void *`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/comments/168696228","html_url":"https://github.com/HaxeFoundation/hxcpp/issues/352#issuecomment-168696228","issue_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/352","id":168696228,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T14:49:00Z","updated_at":"2016-01-04T14:49:00Z","body":"I caused this, but I'm not sure if it's actually my fault because the AST looks alright. See https://github.com/HaxeFoundation/haxe/pull/4746#issuecomment-168160319"}}