Mark endianToNativeImpl @trusted

This commit is contained in:
Dennis Korpel 2024-04-01 23:52:32 +02:00 committed by Nicholas Wilson
parent d1cb5ca585
commit 8729740e32

View file

@ -3274,7 +3274,7 @@ if (canSwapEndianness!T && n == T.sizeof)
assert(c == littleEndianToNative!dchar(swappedC));
}
private T endianToNativeImpl(bool swap, T, size_t n)(ubyte[n] val) @nogc nothrow pure @safe
private T endianToNativeImpl(bool swap, T, size_t n)(ubyte[n] val) @nogc nothrow pure @trusted
if (__traits(isIntegral, T) && n == T.sizeof)
{
if (!__ctfe)