diff options
| author | mat <github@matdoes.dev> | 2022-09-01 20:37:38 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-09-01 20:37:38 -0500 |
| commit | 32458d743f757da3193717fe5554f490703640c0 (patch) | |
| tree | d0e655ac09195c41f6f7d44462d28aab4d1183db /azalea-buf/src/write.rs | |
| parent | 4d072d8057518fe233b8e7390f6c1f4c54b1cfc0 (diff) | |
| download | azalea-drasl-32458d743f757da3193717fe5554f490703640c0.tar.xz | |
fix bad u32::write_into and add tests
Diffstat (limited to 'azalea-buf/src/write.rs')
| -rw-r--r-- | azalea-buf/src/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-buf/src/write.rs b/azalea-buf/src/write.rs index 8def52b3..15fa9680 100644 --- a/azalea-buf/src/write.rs +++ b/azalea-buf/src/write.rs @@ -181,7 +181,7 @@ impl McBufWritable for String { impl McBufWritable for u32 { fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { - i16::write_into(&(*self as i16), buf) + i32::write_into(&(*self as i32), buf) } } |
