Skip to content

Commit 59331a8

Browse files
committed
Fix test failure on 32-bit
1 parent ffaafaa commit 59331a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ufixed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ x = UFixed8(0.5)
6565
@test convert(UFixed14, 1.1/typemax(UInt16)*4) == eps(UFixed14)
6666
@test convert(UFixed16, 1.1/typemax(UInt16)) == eps(UFixed16)
6767
@test convert(UFixed{UInt32,16}, 1.1/typemax(UInt32)*2^16) == eps(UFixed{UInt32,16})
68-
@test convert(UFixed{UInt64,3}, 1.1/typemax(UInt64)*2^61) == eps(UFixed{UInt64,3})
68+
@test convert(UFixed{UInt64,3}, 1.1/typemax(UInt64)*UInt64(2)^61) == eps(UFixed{UInt64,3})
6969
@test convert(UFixed{UInt128,7}, 1.1/typemax(UInt128)*UInt128(2)^121) == eps(UFixed{UInt128,7})
7070

7171
@test convert(UFixed8, 1.1f0/typemax(UInt8)) == eps(UFixed8)

0 commit comments

Comments
 (0)