Skip to content

Commit 05cd768

Browse files
Merge pull request #17 from themaplelab/fix-macos-static-cast
Fix compiling issue for macos
2 parents b20a796 + 4091c74 commit 05cd768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WALASupport/InstrKindInfoGetter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobject InstrKindInfoGetter::handleIntegerLiteralInst() {
218218
Node = (*wala)->makeConstant(static_cast<int>(Value.getSExtValue()));
219219
}
220220
else if (Value.getMinSignedBits() <= 64) {
221-
Node = (*wala)->makeConstant(Value.getSExtValue());
221+
Node = (*wala)->makeConstant(static_cast<long>(Value.getSExtValue()));
222222
}
223223
}
224224
else {

0 commit comments

Comments
 (0)