{"action":"opened","issue":{"url":"https://api.github.com/repos/gfwilliams/EspruinoCompiler/issues/8","labels_url":"https://api.github.com/repos/gfwilliams/EspruinoCompiler/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/gfwilliams/EspruinoCompiler/issues/8/comments","events_url":"https://api.github.com/repos/gfwilliams/EspruinoCompiler/issues/8/events","html_url":"https://github.com/gfwilliams/EspruinoCompiler/issues/8","id":105385964,"number":8,"title":"Make sure ^= (and others) work with ints","user":{"login":"gfwilliams","id":754445,"avatar_url":"https://avatars.githubusercontent.com/u/754445?v=3","gravatar_id":"","url":"https://api.github.com/users/gfwilliams","html_url":"https://github.com/gfwilliams","followers_url":"https://api.github.com/users/gfwilliams/followers","following_url":"https://api.github.com/users/gfwilliams/following{/other_user}","gists_url":"https://api.github.com/users/gfwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/gfwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfwilliams/subscriptions","organizations_url":"https://api.github.com/users/gfwilliams/orgs","repos_url":"https://api.github.com/users/gfwilliams/repos","events_url":"https://api.github.com/users/gfwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/gfwilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T13:53:50Z","updated_at":"2015-09-08T13:53:50Z","closed_at":null,"body":"Something like this:\r\n\r\n```\r\nfunction checksum(m) { \r\n  \"compiled\"; \r\n  var ck = 0;\r\n  var l = 0|m.length;\r\n  var c = m.charCodeAt.bind(m);\r\n  for (var i=0;i<l;i++) ck ^= c(i);\r\n  return ck;\r\n}\r\n```\r\n\r\nIsn't as fast as it could be, because `ck` is treated as a JsVar, not an int."}}