diff --git a/VEX/pub/libvex_basictypes.h b/VEX/pub/libvex_basictypes.h index ef834df48..222654d99 100644 --- a/VEX/pub/libvex_basictypes.h +++ b/VEX/pub/libvex_basictypes.h @@ -90,6 +90,10 @@ static inline UShort toUShort ( Int x ) { x &= 0xFFFF; return (UShort)x; } +static inline UInt toUInt ( Long x ) { + x &= 0xFFFFFFFFLL; + return (UInt)x; +} /* 32/64 bit addresses. */ typedef UInt Addr32;