{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/360","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/360/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/360/events","html_url":"https://github.com/esp8266/Arduino/issues/360","id":82920052,"number":360,"title":"word() cast not working","user":{"login":"rpseng","id":5142420,"avatar_url":"https://avatars.githubusercontent.com/u/5142420?v=3","gravatar_id":"","url":"https://api.github.com/users/rpseng","html_url":"https://github.com/rpseng","followers_url":"https://api.github.com/users/rpseng/followers","following_url":"https://api.github.com/users/rpseng/following{/other_user}","gists_url":"https://api.github.com/users/rpseng/gists{/gist_id}","starred_url":"https://api.github.com/users/rpseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpseng/subscriptions","organizations_url":"https://api.github.com/users/rpseng/orgs","repos_url":"https://api.github.com/users/rpseng/repos","events_url":"https://api.github.com/users/rpseng/events{/privacy}","received_events_url":"https://api.github.com/users/rpseng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-30T21:37:43Z","updated_at":"2015-05-31T06:36:14Z","closed_at":null,"body":"Dear all, first let me say that you are doing a great job on this!\r\n\r\nThe bug I found is very simple to reproduce with the following sketch:\r\n\r\nvoid setup() {\r\n  uint8_t data = 1;\r\n  uint16_t data16 = word(data);\r\n}\r\nvoid loop() {\r\n}\r\n\r\nWith the above code I'm getting unresolved symbols in the link step:\r\nundefined reference to `makeWord(unsigned short)'\r\n\r\nThat should be probably easy to fix, but I don't know where...\r\nI reproduced this problem on both Linux and Windows. For standard Arduino the code links fine.\r\n\r\nThe following equivalent code links fine with the esp8266:\r\nvoid setup() {\r\n  uint8_t data = 1;\r\n  uint16_t data16 = uint16_t(data);\r\n}\r\nvoid loop() {\r\n}\r\n\r\nAll the best.\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/107133143","html_url":"https://github.com/esp8266/Arduino/issues/360#issuecomment-107133143","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/360","id":107133143,"user":{"login":"Makuna","id":7972357,"avatar_url":"https://avatars.githubusercontent.com/u/7972357?v=3","gravatar_id":"","url":"https://api.github.com/users/Makuna","html_url":"https://github.com/Makuna","followers_url":"https://api.github.com/users/Makuna/followers","following_url":"https://api.github.com/users/Makuna/following{/other_user}","gists_url":"https://api.github.com/users/Makuna/gists{/gist_id}","starred_url":"https://api.github.com/users/Makuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Makuna/subscriptions","organizations_url":"https://api.github.com/users/Makuna/orgs","repos_url":"https://api.github.com/users/Makuna/repos","events_url":"https://api.github.com/users/Makuna/events{/privacy}","received_events_url":"https://api.github.com/users/Makuna/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T06:36:14Z","updated_at":"2015-05-31T06:36:14Z","body":"See static_cast<>(), dynamic_cast, and reinterpret_cast, const_cast for the modern way."}}