{"action":"opened","issue":{"url":"https://api.github.com/repos/cc65/cc65/issues/175","labels_url":"https://api.github.com/repos/cc65/cc65/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/cc65/cc65/issues/175/comments","events_url":"https://api.github.com/repos/cc65/cc65/issues/175/events","html_url":"https://github.com/cc65/cc65/issues/175","id":94281394,"number":175,"title":"Bug in decimal (base 10) number evaluation","user":{"login":"Movax12","id":6033359,"avatar_url":"https://avatars.githubusercontent.com/u/6033359?v=3","gravatar_id":"","url":"https://api.github.com/users/Movax12","html_url":"https://github.com/Movax12","followers_url":"https://api.github.com/users/Movax12/followers","following_url":"https://api.github.com/users/Movax12/following{/other_user}","gists_url":"https://api.github.com/users/Movax12/gists{/gist_id}","starred_url":"https://api.github.com/users/Movax12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Movax12/subscriptions","organizations_url":"https://api.github.com/users/Movax12/orgs","repos_url":"https://api.github.com/users/Movax12/repos","events_url":"https://api.github.com/users/Movax12/events{/privacy}","received_events_url":"https://api.github.com/users/Movax12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T10:42:30Z","updated_at":"2015-07-10T10:42:30Z","closed_at":null,"body":"ca65 allows 'a' or 'A' to be included after a leading decimal digit. It is evaluated as if it was the digit 10.\r\n\r\nexample:\r\n\r\n; foo == 20 (decimal)\r\nfoo = 1a\r\n\r\nThis line needs to be changed: \r\nhttps://github.com/cc65/cc65/blob/master/src/ca65/scanner.c#L1014\r\nto:\r\n\r\n```C\r\n  if (DVal >= Base) {\r\n                Error (\"Invalid digits in number\");\r\n                CurTok.IVal = 0;\r\n                break;\r\n            }\r\n```\r\n\r\n\r\n"}}