We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9782993 commit dcb946aCopy full SHA for dcb946a
clang/lib/AST/Interp/IntegralAP.h
@@ -39,7 +39,9 @@ template <bool Signed> class IntegralAP final {
39
using AsUnsigned = IntegralAP<false>;
40
41
template <typename T>
42
- IntegralAP(T Value) : V(APInt(sizeof(T) * 8, Value, std::is_signed_v<T>)) {}
+ IntegralAP(T Value)
43
+ : V(APInt(sizeof(T) * 8, static_cast<uint64_t>(Value),
44
+ std::is_signed_v<T>)) {}
45
46
IntegralAP(APInt V) : V(V) {}
47
IntegralAP(APSInt V) : V(V) {}
0 commit comments