| author | |
| committer | |
| log | 3eca5a42e650878922437a854a352300052c878a |
| tree | 2d7b0ea2702b7538e25695aa54fc7d80d5858128 |
| parent | 6d73e5de058ea421a98a53ae6c0844860715cc01 |
2 files changed, 2 insertions(+), 1 deletions(-)
std/io.zig+1-1| ... | ... | @@ -1131,7 +1131,7 @@ pub fn Deserializer(comptime endian: builtin.Endian, comptime packing: Packing, |
| 1131 | 1131 | } |
| 1132 | 1132 | |
| 1133 | 1133 | pub fn alignToByte(self: *Self) void { |
| 1134 | if (!is_packed) return; | |
| 1134 | if (packing == .Byte) return; | |
| 1135 | 1135 | self.in_stream.alignToByte(); |
| 1136 | 1136 | } |
| 1137 | 1137 |
std/io/test.zig+1| ... | ... | @@ -417,6 +417,7 @@ fn testIntSerializerDeserializerInfNaN( |
| 417 | 417 | const nan_check_f16 = try deserializer.deserialize(f16); |
| 418 | 418 | const inf_check_f16 = try deserializer.deserialize(f16); |
| 419 | 419 | const nan_check_f32 = try deserializer.deserialize(f32); |
| 420 | deserializer.alignToByte(); | |
| 420 | 421 | const inf_check_f32 = try deserializer.deserialize(f32); |
| 421 | 422 | const nan_check_f64 = try deserializer.deserialize(f64); |
| 422 | 423 | const inf_check_f64 = try deserializer.deserialize(f64); |