https://issues.dlang.org/show_bug.cgi?id=16261

dushibaiyu <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from dushibaiyu <[email protected]> ---
nativeToBigEndian aslo erro!

 import std.stdio;
 import std.bitmanip;


 enum ushort type = 100;

 void main()
 {
    ubyte[2] udt = nativeToBigEndian(type);
    writeln("100 as nativeToBigEndian : ", udt);
    ushort uy  = bigEndianToNative!(ushort)(udt);
    writeln("uy = : ", uy);
 }

the rulst:
100 as nativeToBigEndian : [13, 21]
uy = : 3349

--

Reply via email to