{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3643","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3643/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3643/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3643/events","html_url":"https://github.com/nim-lang/Nim/issues/3643","id":121948698,"number":3643,"title":"unsigned `..` bug?","user":{"login":"matkuki","id":10289651,"avatar_url":"https://avatars.githubusercontent.com/u/10289651?v=3","gravatar_id":"","url":"https://api.github.com/users/matkuki","html_url":"https://github.com/matkuki","followers_url":"https://api.github.com/users/matkuki/followers","following_url":"https://api.github.com/users/matkuki/following{/other_user}","gists_url":"https://api.github.com/users/matkuki/gists{/gist_id}","starred_url":"https://api.github.com/users/matkuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matkuki/subscriptions","organizations_url":"https://api.github.com/users/matkuki/orgs","repos_url":"https://api.github.com/users/matkuki/repos","events_url":"https://api.github.com/users/matkuki/events{/privacy}","received_events_url":"https://api.github.com/users/matkuki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-13T22:23:46Z","updated_at":"2015-12-13T22:23:46Z","closed_at":null,"body":"This shouldn't loop but it does:\r\n```nim\r\nvar \r\n  myArray: array[0..10, int]\r\n  fillCount: uint32 = 0 # Problem\r\n\r\nfor i in 0..fillCount-1: # Loops, even though it shouldn't!\r\n  echo myArray[i] # !!Here it throws a 'index out of bounds' error!!\r\n```\r\nThis works\r\n```nim\r\nvar \r\n  myArray: array[0..10, int]\r\n  fillCount: int = 0 # OK\r\n\r\nfor i in 0..fillCount-1: # Doesn't loop, as expected\r\n  echo myArray[i]\r\n```\r\n"}}