You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code which attempts to do 64-bit unsigned arithmetic in a macro, values get coerced to Int32 resulting in:
in bug.cr:7: Invalid Int32: 4294967299
macro add
{% x = 4294967297_u64 %}
puts "{{ x }}: {{ x.kind }}"
{% y = x + 2_u64 %}
puts "{{ y }}: {{ y.kind }}"
{% z = y + 2_u64 %}
puts "{{ z }}: {{ z.kind }}"
end
add
Version:
Crystal 0.24.2 (2018-03-19)
LLVM: 6.0.0
Default target: x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered:
In the following code which attempts to do 64-bit unsigned arithmetic in a macro, values get coerced to Int32 resulting in:
in bug.cr:7: Invalid Int32: 4294967299
Version:
Crystal 0.24.2 (2018-03-19)
LLVM: 6.0.0
Default target: x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered: