@@ -310,49 +310,49 @@ Int128Tests.test("Conversion from integers") {
310310 expectEqual ( Int128 ( truncatingIfNeeded: Int8 . min) , - 0x80 )
311311 expectEqual ( Int128 ( truncatingIfNeeded: Int8 . max) , 0x0000000000000000_000000000000007f )
312312 expectEqual ( Int128 ( truncatingIfNeeded: UInt8 . max) , 0x0000000000000000_00000000000000ff )
313- expectEqual ( Int128 ( truncatingIfNeeded: Int . min) , - 0x8000000000000000 )
314- expectEqual ( Int128 ( truncatingIfNeeded: Int . max) , 0x0000000000000000_7fffffffffffffff )
315- expectEqual ( Int128 ( truncatingIfNeeded: UInt . max) , 0x0000000000000000_ffffffffffffffff )
313+ expectEqual ( Int128 ( truncatingIfNeeded: Int64 . min) , - 0x8000000000000000 )
314+ expectEqual ( Int128 ( truncatingIfNeeded: Int64 . max) , 0x0000000000000000_7fffffffffffffff )
315+ expectEqual ( Int128 ( truncatingIfNeeded: UInt64 . max) , 0x0000000000000000_ffffffffffffffff )
316316
317317 expectEqual ( Int128 ( exactly: - 1 ) , - 1 )
318318 expectEqual ( Int128 ( exactly: Int8 . min) , - 0x80 )
319319 expectEqual ( Int128 ( exactly: Int8 . max) , 0x7f )
320320 expectEqual ( Int128 ( exactly: UInt8 . max) , 0xff )
321- expectEqual ( Int128 ( exactly: Int . min) , - 0x8000000000000000 )
322- expectEqual ( Int128 ( exactly: Int . max) , 0x7fffffffffffffff )
323- expectEqual ( Int128 ( exactly: UInt . max) , 0xffffffffffffffff )
321+ expectEqual ( Int128 ( exactly: Int64 . min) , - 0x8000000000000000 )
322+ expectEqual ( Int128 ( exactly: Int64 . max) , 0x7fffffffffffffff )
323+ expectEqual ( Int128 ( exactly: UInt64 . max) , 0xffffffffffffffff )
324324
325325 expectEqual ( Int128 ( clamping: - 1 ) , - 1 )
326326 expectEqual ( Int128 ( clamping: Int8 . min) , - 0x80 )
327327 expectEqual ( Int128 ( clamping: Int8 . max) , 0x7f )
328328 expectEqual ( Int128 ( clamping: UInt8 . max) , 0xff )
329- expectEqual ( Int128 ( clamping: Int . min) , - 0x8000000000000000 )
330- expectEqual ( Int128 ( clamping: Int . max) , 0x7fffffffffffffff )
331- expectEqual ( Int128 ( clamping: UInt . max) , 0xffffffffffffffff )
329+ expectEqual ( Int128 ( clamping: Int64 . min) , - 0x8000000000000000 )
330+ expectEqual ( Int128 ( clamping: Int64 . max) , 0x7fffffffffffffff )
331+ expectEqual ( Int128 ( clamping: UInt64 . max) , 0xffffffffffffffff )
332332
333333 expectEqual ( UInt128 ( truncatingIfNeeded: - 1 ) , 0xffffffffffffffff_ffffffffffffffff )
334334 expectEqual ( UInt128 ( truncatingIfNeeded: Int8 . min) , 0xffffffffffffffff_ffffffffffffff80 )
335335 expectEqual ( UInt128 ( truncatingIfNeeded: Int8 . max) , 0x0000000000000000_000000000000007f )
336336 expectEqual ( UInt128 ( truncatingIfNeeded: UInt8 . max) , 0x0000000000000000_00000000000000ff )
337- expectEqual ( UInt128 ( truncatingIfNeeded: Int . min) , 0xffffffffffffffff_8000000000000000 )
338- expectEqual ( UInt128 ( truncatingIfNeeded: Int . max) , 0x0000000000000000_7fffffffffffffff )
339- expectEqual ( UInt128 ( truncatingIfNeeded: UInt . max) , 0x0000000000000000_ffffffffffffffff )
337+ expectEqual ( UInt128 ( truncatingIfNeeded: Int64 . min) , 0xffffffffffffffff_8000000000000000 )
338+ expectEqual ( UInt128 ( truncatingIfNeeded: Int64 . max) , 0x0000000000000000_7fffffffffffffff )
339+ expectEqual ( UInt128 ( truncatingIfNeeded: UInt64 . max) , 0x0000000000000000_ffffffffffffffff )
340340
341341 expectEqual ( UInt128 ( exactly: - 1 ) , nil )
342342 expectEqual ( UInt128 ( exactly: Int8 . min) , nil )
343343 expectEqual ( UInt128 ( exactly: Int8 . max) , 0x7f )
344344 expectEqual ( UInt128 ( exactly: UInt8 . max) , 0xff )
345- expectEqual ( UInt128 ( exactly: Int . min) , nil )
346- expectEqual ( UInt128 ( exactly: Int . max) , 0x7fffffffffffffff )
347- expectEqual ( UInt128 ( exactly: UInt . max) , 0xffffffffffffffff )
345+ expectEqual ( UInt128 ( exactly: Int64 . min) , nil )
346+ expectEqual ( UInt128 ( exactly: Int64 . max) , 0x7fffffffffffffff )
347+ expectEqual ( UInt128 ( exactly: UInt64 . max) , 0xffffffffffffffff )
348348
349349 expectEqual ( UInt128 ( clamping: - 1 ) , 0 )
350350 expectEqual ( UInt128 ( clamping: Int8 . min) , 0 )
351351 expectEqual ( UInt128 ( clamping: Int8 . max) , 0x7f )
352352 expectEqual ( UInt128 ( clamping: UInt8 . max) , 0xff )
353- expectEqual ( UInt128 ( clamping: Int . min) , 0 )
354- expectEqual ( UInt128 ( clamping: Int . max) , 0x7fffffffffffffff )
355- expectEqual ( UInt128 ( clamping: UInt . max) , 0xffffffffffffffff )
353+ expectEqual ( UInt128 ( clamping: Int64 . min) , 0 )
354+ expectEqual ( UInt128 ( clamping: Int64 . max) , 0x7fffffffffffffff )
355+ expectEqual ( UInt128 ( clamping: UInt64 . max) , 0xffffffffffffffff )
356356 }
357357}
358358
0 commit comments