| ... | ... | @@ -1714,7 +1714,7 @@ pub fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) |
| 1714 | 1714 | } |
| 1715 | 1715 | }, |
| 1716 | 1716 | } |
| 1717 | | return @as(ReturnType, @truncate(result)); |
| 1717 | return @truncate(result); |
| 1718 | 1718 | } |
| 1719 | 1719 | |
| 1720 | 1720 | test readVarInt { |
| ... | ... | @@ -2196,7 +2196,9 @@ pub fn byteSwapAllFields(comptime S: type, ptr: *S) void { |
| 2196 | 2196 | } |
| 2197 | 2197 | } |
| 2198 | 2198 | }, |
| 2199 | | else => @compileError("byteSwapAllFields expects a struct or array as the first argument"), |
| 2199 | else => { |
| 2200 | ptr.* = @byteSwap(ptr.*); |
| 2201 | }, |
| 2200 | 2202 | } |
| 2201 | 2203 | } |
| 2202 | 2204 | |