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
typeArrayBuf*[N: staticint, T =byte] =objectwhensizeof(int) >sizeof(uint8):
when N <=int(uint8.high):
n*: uint8else:
whensizeof(int) >sizeof(uint16):
when N <=int(uint16.high):
n*: uint16else:
whensizeof(int) >sizeof(uint32):
when N <=int(uint32.high):
n*: uint32else:
n*: intelse:
n*: intelse:
n*: intelse:
n*: int
in 32-bit mode, the section when sizeof(int) > sizeof(uint32) should not be entered, and yet the compiler complains about when N <= int(uint32.high)
Nim Version
2.0.8
Current Output
nim c -r --cpu:i386 "testit.nim"
/home/arnetheduck/status/nimbus-eth1/_exper/testit.nim(12, 26) Error: cannot convert 4294967295 to int
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
in 32-bit mode, the section
when sizeof(int) > sizeof(uint32)
should not be entered, and yet the compiler complains aboutwhen N <= int(uint32.high)
Nim Version
2.0.8
Current Output
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: