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
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:114:4: error: call expansion failed
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:45:4: note: function instantiation failed
:0: note: call expansion failed
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:425:8: note: function instantiation failed
:0: note: integer value 170141183460469231731687303715884105728 requires 129 bits to store, but the destination bit width is only 128 bits wide
Steps to reproduce
fnmain():
aliasUint256= Scalar[DType.uint256]
vara: Uint256 =170141183460469231731687303715884105727
a +=1varb: Uint256 = a #This works varc: Uint256 =170141183460469231731687303715884105728# This does notprint(b, c)
System information
max 25.2.0.dev2025030405
The text was updated successfully, but these errors were encountered:
fnmain():
vara: UInt256 =2**256-1# 115792089237316195423570985008687907853269984665640564039457584007913129639935varb: UInt256 =2**255-1# 115792089237316195423570985008687907853269984665640564039457584007913129639935# should be 57896044618658097711785492504343953926634992332820282019728792003956564819967varc: UInt256 =2**64-1# 115792089237316195423570985008687907853269984665640564039457584007913129639935# should be 18446744073709551615print(a == b == c) # True should be False
Bug description
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:114:4: error: call expansion failed
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:45:4: note: function instantiation failed
:0: note: call expansion failed
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:425:8: note: function instantiation failed
:0: note: integer value 170141183460469231731687303715884105728 requires 129 bits to store, but the destination bit width is only 128 bits wide
Steps to reproduce
System information
max 25.2.0.dev2025030405
The text was updated successfully, but these errors were encountered: