How to specify a hex int32 literal?


 54 | WINHTTP_ADDREQ_FLAG_REPLACE = 0x80000000_i32
                                    ^-------------
Error: 0x80000000 doesn't fit in an Int32
icr:1> 0x80000000
 => 2147483648

2147483648 is out of the range of Int32.

int 32
-2,147,483,648 - 2,147,483,647

By the way, what is WINHTTP_ADDREQ_FLAG_REPLACE ? I searched GitHub.

Probably UInt32, not Int32.

WINHTTP_ADDREQ_FLAG_REPLACE = 0x80000000_u32
1 Like

It is a UInt32.