summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorchmod222 <304922+chmod222@users.noreply.github.com>2023-04-01 20:29:28 +0200
committerGitHub <noreply@github.com>2023-04-01 20:29:28 +0200
commit0c6f14af048c4bd61c91552af79c003dfd34601e (patch)
treeac209c910798f8b5d0fee6061f37fa293e454fbe /tests
parenta80f1a324fff0b2af47c0766750b3188bcab8041 (diff)
downloadNim-0c6f14af048c4bd61c91552af79c003dfd34601e.tar.gz
macros: Extend treeTraverse intVal range to nnkUInt64Lit (#21597)
* Extend intVal range to nnkUInt64Lit

Fixes #21593

* Properly cast intVal as unsigned

* Add testcase for #21593
Diffstat (limited to 'tests')
-rw-r--r--tests/macros/t21593.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/macros/t21593.nim b/tests/macros/t21593.nim
new file mode 100644
index 000000000..b0b7ebe75
--- /dev/null
+++ b/tests/macros/t21593.nim
@@ -0,0 +1,13 @@
+discard """
+nimout: '''
+StmtList
+  UIntLit 18446744073709551615
+  IntLit -1'''
+"""
+
+import macros
+
+dumpTree:
+  0xFFFFFFFF_FFFFFFFF'u
+  0xFFFFFFFF_FFFFFFFF
+