| ... | ... | @@ -122,7 +122,7 @@ fn truncXfYf2(comptime dst_t: type, comptime src_t: type, a: src_t) dst_t { |
| 122 | 122 | if (shift > srcSigBits) { |
| 123 | 123 | absResult = 0; |
| 124 | 124 | } else { |
| 125 | | const sticky: src_rep_t = significand << @intCast(SrcShift, srcBits - shift); |
| 125 | const sticky: src_rep_t = @boolToInt(significand << @intCast(SrcShift, srcBits - shift) != 0); |
| 126 | 126 | const denormalizedSignificand: src_rep_t = significand >> @intCast(SrcShift, shift) | sticky; |
| 127 | 127 | absResult = @intCast(dst_rep_t, denormalizedSignificand >> (srcSigBits - dstSigBits)); |
| 128 | 128 | const roundBits: src_rep_t = denormalizedSignificand & roundMask; |