{"action":"opened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-spritebuilder/issues/1314","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-spritebuilder/issues/1314/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-spritebuilder/issues/1314/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-spritebuilder/issues/1314/events","html_url":"https://github.com/cocos2d/cocos2d-spritebuilder/issues/1314","id":71133880,"number":1314,"title":"Cast from pointer to smaller type loses information","user":{"login":"borogove","id":313173,"avatar_url":"https://avatars.githubusercontent.com/u/313173?v=3","gravatar_id":"","url":"https://api.github.com/users/borogove","html_url":"https://github.com/borogove","followers_url":"https://api.github.com/users/borogove/followers","following_url":"https://api.github.com/users/borogove/following{/other_user}","gists_url":"https://api.github.com/users/borogove/gists{/gist_id}","starred_url":"https://api.github.com/users/borogove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borogove/subscriptions","organizations_url":"https://api.github.com/users/borogove/orgs","repos_url":"https://api.github.com/users/borogove/repos","events_url":"https://api.github.com/users/borogove/events{/privacy}","received_events_url":"https://api.github.com/users/borogove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-26T23:16:11Z","updated_at":"2015-04-26T23:16:11Z","closed_at":null,"body":"Cocos2d-spritebuilder 3.4.3.\r\n\r\nIn CCTMXXMLParser.m, line 500:\r\n\r\n   inflatedLen = (int)&inflatedLen; // XXX: to avoid warings in compiler \r\n\r\nThis looks like a pretty shady suppression of an unused variable warning; \r\nI'm building an Objective-C++ project, which seems to have different casting rules, so this is a fatal compilation error:\r\n Cast from pointer to smaller type 'int' loses information\r\n\r\nThere are a number of other casting errors across the codebase in Objective-C++ mode. This thread from October 2014 toyed with the idea of adding Objective-C++ source to the tests: http://forum.cocos2d-spritebuilder.org/t/cocos3d-c-mm-files-compiler-issue/15570/3\r\n\r\n"}}