Skip to content

Commit

Permalink
[clang][Interp] Try to fix another build failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Oct 2, 2023
1 parent 5b66987 commit b52a5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/IntegralAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ template <bool Signed> class IntegralAP final {

template <typename T> static IntegralAP from(T Value, unsigned NumBits = 0) {
assert(NumBits > 0);
APSInt Copy = APSInt(APInt(NumBits, Value, Signed), !Signed);
APSInt Copy = APSInt(APInt(NumBits, static_cast<int64_t>(Value), Signed), !Signed);

return IntegralAP<Signed>(Copy);
}
Expand Down

0 comments on commit b52a5c6

Please sign in to comment.