| ... | ... | @@ -1879,7 +1879,7 @@ test sign { |
| 1879 | 1879 | /// Increases the bit width of an integer by copying the most significant bit. |
| 1880 | 1880 | /// This results in the input and output having the same arithmetic value, when |
| 1881 | 1881 | /// interpreted as two's complement integers. |
| 1882 | | fn signExtend(To: type, n: anytype) To { |
| 1882 | pub fn signExtend(To: type, n: anytype) To { |
| 1883 | 1883 | const From = @TypeOf(n); |
| 1884 | 1884 | if (From == u0) return 0; |
| 1885 | 1885 | const FromSigned = @Int(.signed, @typeInfo(From).int.bits); |