The rust project I m using depends on fixed_hash
0.2.2. And I would need to compare one H160 against a literal (mode exactly know if my_var==0xdac17f958d2ee523a2206206994597c13d831ec7
).
Internally, the H160
type is just a pointer to a plain integer encoded like with _Extint()
. And as I already need to pass the value to a C module, I m thinking about just making the comparison from there.
The problem is integer litterals in clang are read as 64 bits Integers, so that
const _ExtInt(160) my_const=0xdac17f958d2ee523a2206206994597c13d831ec7;
<source>:1:28: error: integer literal is too large to be represented in any integer type
So how to assign 0xdac17f958d2ee523a2206206994597c13d831ec7 to my_const
in big endian?