{"action":"created","issue":{"url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/157","repository_url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32","labels_url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/157/comments","events_url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/157/events","html_url":"https://github.com/whitecatboard/Lua-RTOS-ESP32/issues/157","id":318674836,"number":157,"title":"CJSON: doesn't encode values correct","user":{"login":"lu1210","id":36233245,"avatar_url":"https://avatars3.githubusercontent.com/u/36233245?v=4","gravatar_id":"","url":"https://api.github.com/users/lu1210","html_url":"https://github.com/lu1210","followers_url":"https://api.github.com/users/lu1210/followers","following_url":"https://api.github.com/users/lu1210/following{/other_user}","gists_url":"https://api.github.com/users/lu1210/gists{/gist_id}","starred_url":"https://api.github.com/users/lu1210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lu1210/subscriptions","organizations_url":"https://api.github.com/users/lu1210/orgs","repos_url":"https://api.github.com/users/lu1210/repos","events_url":"https://api.github.com/users/lu1210/events{/privacy}","received_events_url":"https://api.github.com/users/lu1210/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-28T23:00:29Z","updated_at":"2018-05-03T01:10:41Z","closed_at":null,"author_association":"NONE","body":"tbl = {}\r\ntbl.value = 1234475220\r\nprint(tbl.value)\r\nrequire('cjson').encode(tbl)\r\n\r\n/ > tbl = {}\r\n/ > tbl.value = 1234475220\r\n/ > print(tbl.value)\r\n1234475220\r\n/ > require('cjson').encode(tbl)\r\n{\"value\":1234475264}\r\n/ > "},"comment":{"url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/comments/386166958","html_url":"https://github.com/whitecatboard/Lua-RTOS-ESP32/issues/157#issuecomment-386166958","issue_url":"https://api.github.com/repos/whitecatboard/Lua-RTOS-ESP32/issues/157","id":386166958,"user":{"login":"jolivepetrus","id":16651312,"avatar_url":"https://avatars2.githubusercontent.com/u/16651312?v=4","gravatar_id":"","url":"https://api.github.com/users/jolivepetrus","html_url":"https://github.com/jolivepetrus","followers_url":"https://api.github.com/users/jolivepetrus/followers","following_url":"https://api.github.com/users/jolivepetrus/following{/other_user}","gists_url":"https://api.github.com/users/jolivepetrus/gists{/gist_id}","starred_url":"https://api.github.com/users/jolivepetrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolivepetrus/subscriptions","organizations_url":"https://api.github.com/users/jolivepetrus/orgs","repos_url":"https://api.github.com/users/jolivepetrus/repos","events_url":"https://api.github.com/users/jolivepetrus/events{/privacy}","received_events_url":"https://api.github.com/users/jolivepetrus/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T01:10:41Z","updated_at":"2018-05-03T01:10:41Z","author_association":"CONTRIBUTOR","body":"@lu1210,\r\n\r\nMy god! I hate to work with real numbers!\r\n\r\nAs far I can see, this issue is caused by the fact that in Lua RTOS real numbers use 32-bit floats.\r\n\r\nTo solve this, now Lua RTOS can be configured to work with 64-bit integer / real numbers. In my tests, all the above test cases work as expected.\r\n\r\nSee commit https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/37c9ce090b00ffece6809e0d015cd203308c6ef9."}}
{"actor":{"display_login":"jolivepetrus"}}