remove unnecessary unsafe keyword

This commit is contained in:
vis2k 2022-01-06 13:22:23 +08:00
parent dde8cc48f3
commit 76fe9759c6

View File

@ -110,7 +110,7 @@ internal unsafe T ReadBlittable<T>()
// blittable'?' template for code reuse
// note: bool isn't blittable. need to read as byte.
internal unsafe T? ReadBlittableNullable<T>()
internal T? ReadBlittableNullable<T>()
where T : unmanaged =>
ReadByte() != 0 ? ReadBlittable<T>() : default(T?);