Skip to content

Commit b52a5c6

Browse files
committed
[clang][Interp] Try to fix another build failure on Windows
1 parent 5b66987 commit b52a5c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/IntegralAP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ template <bool Signed> class IntegralAP final {
6666

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

7171
return IntegralAP<Signed>(Copy);
7272
}

0 commit comments

Comments
 (0)