Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot print unsigned integer constant #6838

Closed
markus-oberhumer opened this issue Nov 29, 2017 · 1 comment
Closed

Cannot print unsigned integer constant #6838

markus-oberhumer opened this issue Nov 29, 2017 · 1 comment

Comments

@markus-oberhumer
Copy link
Contributor

This issue was extracted from #6829 (comment) :

test.nim(10, 8) Error: cannot convert -1 to uint64

when sizeof(int) == 8:
  var a   = 18446744073709551615'u64.uint
  const b = 18446744073709551615'u64.uint

  doAssert a is uint
  doAssert b is uint
  doAssert a == b

  echo a
  echo b # DOES NOT COMPILE
@Araq
Copy link
Member

Araq commented May 22, 2019

Now produces the correct output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants