@@ -433,24 +433,24 @@ import gyb
433
433
fixed_fixed_conversion_function = gyb. parse_template ( " fixed_fixed_conversion_function " ,
434
434
"""
435
435
%
436
- let srcNotWord = value._value
436
+ let src = value._value
437
437
let result: (value: Builtin.${BuiltinName}, error: Builtin.Int1)
438
438
%
439
439
% if srcBits == bits and srcSign == sign: # Exact same size/signedness.
440
- result = (srcNotWord , false._value)
440
+ result = (src , false._value)
441
441
%
442
442
% elif srcBits == bits: # Same size, switching signs.
443
- result = Builtin.${srcSign}_to_${sign}_checked_conversion_Int${srcBits}(srcNotWord )
443
+ result = Builtin.${srcSign}_to_${sign}_checked_conversion_Int${srcBits}(src )
444
444
%
445
445
% elif srcBits > bits: # Larger input, check for truncation.
446
- result = Builtin.${srcSign}_to_${sign}_checked_trunc_Int${srcBits}_Int${bits}(srcNotWord )
446
+ result = Builtin.${srcSign}_to_${sign}_checked_trunc_Int${srcBits}_Int${bits}(src )
447
447
%
448
448
% elif srcSigned and not signed: # Smaller size input, signed going to unsigned.
449
- let (tmp, signError) = Builtin.s_to_u_checked_conversion_Int${srcBits}(srcNotWord )
449
+ let (tmp, signError) = Builtin.s_to_u_checked_conversion_Int${srcBits}(src )
450
450
result = (Builtin.${srcExt}_Int${srcBits}_Int${bits}(tmp), signError)
451
451
%
452
452
% else: # Smaller size input, unsigned to signed or unsigned to unsigned.
453
- result = (Builtin.${srcExt}_Int${srcBits}_Int${bits}(srcNotWord ), false._value)
453
+ result = (Builtin.${srcExt}_Int${srcBits}_Int${bits}(src ), false._value)
454
454
% end
455
455
%
456
456
% if not safelyConvertable:
@@ -501,12 +501,12 @@ extension ${Self} {
501
501
@_transparent
502
502
public init( truncatingBitPattern: ${ Src} ) {
503
503
%
504
- let srcNotWord = truncatingBitPattern. _value
504
+ let src = truncatingBitPattern. _value
505
505
%
506
506
% if self_ty. bits == src_ty. bits:
507
- let dstNotWord = srcNotWord
507
+ let dstNotWord = src
508
508
% else:
509
- let dstNotWord = Builtin . trunc_Int ${ srcBits} _Int${ bits} ( srcNotWord )
509
+ let dstNotWord = Builtin . trunc_Int ${ srcBits} _Int${ bits} ( src )
510
510
% end
511
511
%
512
512
self . _value = dstNotWord
0 commit comments